PNG Transparencies in CSS

This is a discussion on "PNG Transparencies in CSS" within the Web Page Design section. This forum, and the thread "PNG Transparencies in CSS 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 Oct 10th, 2006, 13:28
Junior Member
Join Date: Aug 2006
Location: uk
Age: 25
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
PNG Transparencies in CSS

I'm currently using PNGs as background images through CSS for my page elements. However, although these work fine in Firefox, IE does not support them.

Gifs are too low quality, Jpegs are not transparent.

I have worked around the problme before by issuing the background edges of the transparent images as the same colour of the backgound on which they are displayd on, however, this is becoming more painful when I want image placed against gradiant backgrounds.

What is the solution here?
Reply With Quote

  #2 (permalink)  
Old Oct 10th, 2006, 13:29
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,738
Blog Entries: 1
Thanks: 0
Thanked 16 Times in 16 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: PNG Transparencies in CSS

There are various "Hacks" to make PNG's work in IE and IE 7 does have Png support. So soont he problem will be much less of a problem. Until then google around for a trick.
__________________
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
  #3 (permalink)  
Old Oct 10th, 2006, 13:38
Junior Member
Join Date: Aug 2006
Location: uk
Age: 25
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PNG Transparencies in CSS

Quote:
Originally Posted by moojoo View Post
There are various "Hacks" to make PNG's work in IE and IE 7 does have Png support. So soont he problem will be much less of a problem. Until then google around for a trick.
Googling around only seems to find IE hacks when using them as HTML IMGs, not CSS background-images.

Reply With Quote
  #4 (permalink)  
Old Oct 10th, 2006, 13:45
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,738
Blog Entries: 1
Thanks: 0
Thanked 16 Times in 16 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: PNG Transparencies in CSS

Maybe this will help?

http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html

You can use CSS filters to get the PNG support working.
__________________
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
  #5 (permalink)  
Old Oct 10th, 2006, 14:47
Junior Member
Join Date: Aug 2006
Location: uk
Age: 25
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PNG Transparencies in CSS

Quote:
Originally Posted by moojoo View Post
Maybe this will help?

http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html

You can use CSS filters to get the PNG support working.
Thanks Moojoo - a comprehensive hack, although I was looking for something a bit more practical and simple.

I only just found out that 8-bit PNG transparencies ARE supported in IE, although look a bit ropey. This will do for nnow unless there is something better anyone?
Reply With Quote
  #6 (permalink)  
Old Oct 10th, 2006, 14:51
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,738
Blog Entries: 1
Thanks: 0
Thanked 16 Times in 16 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: PNG Transparencies in CSS

When it comes to IE and its suck nothing is practical or simple.
__________________
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
  #7 (permalink)  
Old Oct 10th, 2006, 15:02
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PNG Transparencies in CSS

Quote:
When it comes to IE and its suck nothing is practical or simple.
Haha. This is true.

I had the same problem a while ago, shifty. I ended up ditching the idea and going for an alternative design. It's mostly because I hate hacks, but in the long run, I'm glad I dropped it.
Reply With Quote
Reply

Tags
no ie support

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


All times are GMT. The time now is 19:28.


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