Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
IE png fix won't work.
Old 08-08-2009, 02:52 PM IE png fix won't work.
matt w's Avatar
Super Talker

Posts: 133
Location: kalamazoo
Trades: 0
My IE png fix refuses to work. See:
http://recoverymi.org/RI_pages/artworks2.html
All needed files are in the same folder, i.e. transparent.gif, ie_specific.css, and png.htc.
First, how can I tell that the the links between the files are connecting? Second, generally, why isn't the hack working? Obviously this is to provide transparent images for IE 5.5 and 6.0.
Thanks,
Matt
matt w is offline
Reply With Quote
View Public Profile Visit matt w's homepage!
 
 
Register now for full access!
Old 08-08-2009, 03:09 PM Re: IE png fix won't work.
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You have to be more specific with how you specify what gets the behavior.

You have this:

Quote:
#topsection, .png { behavior: url(png.htc); }
Try this:

Quote:
div.png img{ behavior: url(png.htc); }
You also need to be sure that you have the transparent.gif that is needed and that the path to it in the htc file is correct.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-08-2009, 07:37 PM Re: IE png fix won't work.
matt w's Avatar
Super Talker

Posts: 133
Location: kalamazoo
Trades: 0
LadynRed,
Thank you.
Your advice on: div.png img{ behavior: url(png.htc); } worked! (for the image in the #topsection div) Thanks a lot! I would like to get my link background images to go transparent.
Would it help me if I knew the rule for describing the css selector elements I want hit with the .htc? Could that syntax be applied to the .link background images?

Or am I going to need another fix specifically for background images? Or another bracket of css code? I hope I'm not bugging you. I tried to do this by googling.
matt w.
matt w is offline
Reply With Quote
View Public Profile Visit matt w's homepage!
 
Old 08-08-2009, 08:01 PM Re: IE png fix won't work.
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
Could that syntax be applied to the .link background images?
Yes indeed

You can just add on the additional elements that need the png fix - try this:

div.png img, div.link{ behavior: url(png.htc); }
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-08-2009, 08:48 PM Re: IE png fix won't work.
matt w's Avatar
Super Talker

Posts: 133
Location: kalamazoo
Trades: 0
LadynRed,
I think I got it. I'll let you know within a couple days. Thanks.
~matt w.
matt w is offline
Reply With Quote
View Public Profile Visit matt w's homepage!
 
Old 08-14-2009, 01:22 PM Re: IE png fix won't work.
matt w's Avatar
Super Talker

Posts: 133
Location: kalamazoo
Trades: 0
Thanks much,
It works. I used the syntax:

/* fix to force IE6 to display transparent PNGs */
img, .link, #topsection { behavior: url(iepngfix.htc); }

where the css code for the "link" class and the "topsection" id contain background images for the page.
matt w is offline
Reply With Quote
View Public Profile Visit matt w's homepage!
 
Reply     « Reply to IE png fix won't work.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24622 seconds with 12 queries