IE CSS rollover with transparent PNGs?

This is a discussion on "IE CSS rollover with transparent PNGs?" within the Web Page Design section. This forum, and the thread "IE CSS rollover with transparent PNGs? are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 31st, 2008, 09:24
Reputable Member
Join Date: Jul 2007
Location: UK
Posts: 108
Thanks: 2
Thanked 1 Time in 1 Post
IE CSS rollover with transparent PNGs?

Hi!

Much to my utter disgust and hatred for IE, I would like to know how the blazes I am supposed to get transparent PNGs to rollover using CSS in IE. Works fine in Safari and Firefox.

My site:
http://www.jonathanmortimer.co.uk/test2

Note that this site is liable to change, break, etc as I try out new things (I have to upload to test in IE as I am running Winslows XP in Q on my Mac and the OS X - Windows networking thing seems to be broken for XP).

I have tried the PNGfix at http://homepage.ntlworld.com/bobosola/ but can't get it to work with a CSS rollover, I think it assumes I am using a javascript rollover.
Reply With Quote

  #2 (permalink)  
Old Mar 31st, 2008, 09:31
Junior Member
Join Date: Dec 2007
Location: UK
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to AndrewChip
Re: IE CSS rollover with transparent PNGs?

I use a simple hack found here:

http://www.twinhelix.com/css/iepngfix/

It's worked on everything I've needed png's for
Reply With Quote
  #3 (permalink)  
Old Mar 31st, 2008, 09:32
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,388
Blog Entries: 13
Thanks: 1
Thanked 17 Times in 15 Posts
Re: IE CSS rollover with transparent PNGs?

what version of IE are you using? If using IE6 then you will need to apply the alpha channel transparency fix

you can also have a look at this article from a list apart:
http://www.alistapart.com/stories/pngopacity/
Check out example 2: anti-aliased translucent nav with rollovers

you can also try twin helix's png fix: http://www.twinhelix.com/css/iepngfix/

you can also have a look at this tutortial:
http://www.remotesynthesis.com/blog/...ollovers-in-IE
__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
Reply With Quote
  #4 (permalink)  
Old Mar 31st, 2008, 10:32
Reputable Member
Join Date: Jul 2007
Location: UK
Posts: 108
Thanks: 2
Thanked 1 Time in 1 Post
Cool Re: IE CSS rollover with transparent PNGs?

Sorry, tried all those things and none of them worked. Followed them to the letter.

I've had it with IE. I'm not going to be Microsoft's lapdog like the rest, millions of people CAN be wrong. We all know IE and Windows are the worst pieces of software ever written. I made my effort by following the official W3C standards and that's good enough for me.

Thanks for the responses though
Reply With Quote
  #5 (permalink)  
Old Mar 31st, 2008, 10:44
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,388
Blog Entries: 13
Thanks: 1
Thanked 17 Times in 15 Posts
Re: IE CSS rollover with transparent PNGs?

ha ha ha, totally agree with you, but unfortunately it still has too big a market share to really discount it

http://www.w3schools.com/browsers/browsers_stats.asp

If you leave it then it will be your end users that will suffer not MS, so it may be worth spending a bit longer trying to fix.

can you post a link so we can take a look?
__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
Reply With Quote
  #6 (permalink)  
Old Mar 31st, 2008, 10:57
Reputable Member
Join Date: Jul 2007
Location: UK
Posts: 108
Thanks: 2
Thanked 1 Time in 1 Post
Thumbs up Re: IE CSS rollover with transparent PNGs?

Quote:
Originally Posted by welshstew View Post
ha ha ha, totally agree with you, but unfortunately it still has too big a market share to really discount it

http://www.w3schools.com/browsers/browsers_stats.asp

If you leave it then it will be your end users that will suffer not MS, so it may be worth spending a bit longer trying to fix.

can you post a link so we can take a look?
Yeah, sorry, it just makes me so angry! However, if more people stopped using IE then Microsoft might just stop making it.

http://www.jonathanmortimer.co.uk/test2

Basically I can't be bothered fiddling and cussing over it any more just for the sake of IE, however if someone is feeling kind enough to fix my code to make it IE friendly then I'm all for that, then I can fix the rest myself.
Reply With Quote
  #7 (permalink)  
Old Mar 31st, 2008, 11:23
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,388
Blog Entries: 13
Thanks: 1
Thanked 17 Times in 15 Posts
Re: IE CSS rollover with transparent PNGs?

hhhmmm,

this only seems to be an issue with ie6.

so you have two options.

either try the alpha channel transparency fix again and see if this works

or use a ie6 specific stylesheet (http://www.quirksmode.org/css/condcom.html) and render gifs for ie6 users rather than pngs.

good luck
__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
Reply With Quote
  #8 (permalink)  
Old Mar 31st, 2008, 11:40
Aso's Avatar
Aso Aso is online now
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,012
Blog Entries: 2
Thanks: 5
Thanked 23 Times in 20 Posts
Send a message via Skype™ to Aso
Re: IE CSS rollover with transparent PNGs?

Quote:
or use a ie6 specific stylesheet (http://www.quirksmode.org/css/condcom.html) and render gifs for ie6 users rather than pngs.
In fact, you might as well use gif's anyway. You really don't need alpha transparency in this situation (and if you use a white matt, you won't tell the difference).
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Reply With Quote
  #9 (permalink)  
Old Apr 3rd, 2008, 21:35
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,763
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: IE CSS rollover with transparent PNGs?

I would serve up the gif images to IE 6 users personally and mayhaps use a conditional just telling them that it would look better in IE 7 or something. Kinda crappy but this day in age any one hanging onto IE 6 deserves what they get imo. I still support it but I won't spend an hour or so attaching a png hack to every png file for one browser. </bitter rant> gege
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #10 (permalink)  
Old Apr 3rd, 2008, 22:01
Reputable Member
Join Date: Jul 2007
Location: UK
Posts: 108
Thanks: 2
Thanked 1 Time in 1 Post
Re: IE CSS rollover with transparent PNGs?

Quote:
Originally Posted by aso186 View Post
In fact, you might as well use gif's anyway. You really don't need alpha transparency in this situation (and if you use a white matt, you won't tell the difference).
Thing is, imo, GIF is pretty much yesterday's image format (although I know it has been updated through the years, and is still useful for animated images). I use Inkscape for my graphics and the bitmap output format for that is PNG, a much more modern and flexible image format than GIF, and one which also follows my philosophy for this site of using 100% free and opensource tools and file formats.

I can just use the white matt with PNG, as I am doing as I write this, as a temporary fix. With transparency there may be further scope for cool tricks as I learn new stuff
Reply With Quote
  #11 (permalink)  
Old Apr 3rd, 2008, 22:06
Reputable Member
Join Date: Jul 2007
Location: UK
Posts: 108
Thanks: 2
Thanked 1 Time in 1 Post
Wink Re: IE CSS rollover with transparent PNGs?

Quote:
Originally Posted by moojoo View Post
... any one hanging onto IE 6 deserves what they get imo. I still support it but I won't spend an hour or so attaching a png hack to every png file for one browser. </bitter rant> gege
I'm with you all the way on that one! Problem is that I bet IE 7 requires Win XP and probably DX10, there are plenty of people out there still on 2000 and even 98 (although admittedly I don't care if these people can't view this particular website as it's not aimed at them). Stupid Microsoft with their crappy "new technobollocks" that requires x number of other upgrades and updates to work properly

Actually, my portfolio site is aimed at people who use an Apple Mac, as it's aimed at getting me a job in the creative industry at a company who uses them (I hate PCs!)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Transparent PNG files geyids Graphics and 3D 2 Apr 17th, 2008 12:15
(Site Check) PNGs Filled Halloween Theme Website Layout tomazws Free Web Site Critique 12 Oct 15th, 2007 12:51
Rollover and disjointed rollover on same items? jtyoungs Web Page Design 37 Oct 1st, 2007 14:05
jerky pngs when tweening funkydreadman Flash & Multimedia Forum 5 Sep 25th, 2007 16:57
Transparent .png and IE6 andrewlondon Graphics and 3D 9 Sep 4th, 2007 13:12


All times are GMT. The time now is 16:29.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43