Go Back   CodingForums.com > :: Client side development > Graphics and Multimedia discussions

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-26-2009, 03:51 PM   PM User | #1
johnny0313x
New to the CF scene

 
Join Date: Feb 2009
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
johnny0313x is an unknown quantity at this point
PNG transparent images in IE

My PNG transparent images have gray backgrounds in IE6 does anyone know how to fix this? Should I use .gif?
johnny0313x is offline   Reply With Quote
Old 02-26-2009, 03:57 PM   PM User | #2
BoldUlysses
Regular Coder

 
BoldUlysses's Avatar
 
Join Date: Jan 2008
Location: Winston-Salem, NC
Posts: 938
Thanks: 10
Thanked 190 Times in 187 Posts
BoldUlysses is on a distinguished road
You don't have to revert to GIFs. You'll have to use a little bit of JavaScript to get alpha-channel transparency (the kind PNGs use) to work in IE6.
__________________
matt | design | blog
BoldUlysses is offline   Reply With Quote
Old 02-26-2009, 05:39 PM   PM User | #3
johnny0313x
New to the CF scene

 
Join Date: Feb 2009
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
johnny0313x is an unknown quantity at this point
I saw some stuff about that but what if a visitor has java turned off, is there a work around for that? Thank you by the way for replying, I will use this method unless there is a better way to cover all possibilities.
johnny0313x is offline   Reply With Quote
Old 02-26-2009, 06:07 PM   PM User | #4
BoldUlysses
Regular Coder

 
BoldUlysses's Avatar
 
Join Date: Jan 2008
Location: Winston-Salem, NC
Posts: 938
Thanks: 10
Thanked 190 Times in 187 Posts
BoldUlysses is on a distinguished road
Negative. If a user has JavaScript turned off, then you're SOL.

The script works well but isn't totally foolproof, either. I tried to use it recently when making a faux column layout in conjunction with a sticky footer, and the background image I had applied to #wrap and repeated vertically ran over the footer. So in that case I made a special background image for IE6, without the transparency, and resorted to good ol' conditional comments:

Code:
<!--[if lte IE 6]>
  <link rel="stylesheet" href="css/ie6.css" type="text/css" />
<![endif]-->
and

Code:
#wrap {
	background:url("../images/wrap_bg2ie.png") repeat-y;
}
It's not ideal but the visual difference isn't glaringly obvious. It's a judgment call.
__________________
matt | design | blog

Last edited by BoldUlysses; 02-26-2009 at 06:09 PM..
BoldUlysses is offline   Reply With Quote
Reply

Bookmarks

Tags
ie6, png

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 02:38 AM.


Advertisement
Log in to turn off these ads.