This is a discussion on "PNG Transparency" within the Web Page Design section. This forum, and the thread "PNG Transparency are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
PNG Transparency
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Why in IE6 does the transparency for png's not work. Is there a way around this?
|
|
|
|
#2
|
||||
|
||||
|
Re: PNG Transparency
this is a known bug in IE6 and fixed (I think) in IE7. I have used IE7 a
lot and haven't come across this problem while using it so I guess that Mr gates must be telling the truth. There are a number of "workarounds" particularly if you are building websites, it seems the open source community are yet again doing things that Microsoft can't or won't(?) One of the easiest workarounds was to use GIF!! If you were editing the image in Adobe then make sure you are using it in "RGB" and not "Index" modes because this will play merry hell with colour and balance. This may happen in other image editors as well but I cant be sure you may also want to look at this http://www.zelph.com/archives/2005/0...arency-script/
Last Blog Entry: Strict and Transitional Doctype's (Sep 12th, 2008)
Last edited by saltedm8; Feb 23rd, 2007 at 21:01. |
|
#3
|
|||
|
|||
|
Re: PNG Transparency
Here you go Jacob
Cross-Browser Variable Opacity with PNG: A Real Solution Or one of these: PNG in Windows IE: How To Use PNG Behavior PNG overlay using one single Image element Improved PNG Behavior Last edited by karinne; Feb 24th, 2007 at 20:37. |
|
#4
|
|||
|
|||
|
Re: PNG Transparency
IE 7 handles PNG files correctly, IE 5.5/6 require a hack IE pre 5.5 out of luck.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#5
|
|||
|
|||
|
Re: PNG Transparency
What hack would you recommend moojoo?
|
|
#6
|
||||
|
||||
|
Re: PNG Transparency
I just got through doing this five seconds ago. I used php and a browser sniffer to replace the .png with a .gif, which is easy enough (code below). My problem was making a transparent .gif for text that looked good. I found you can do an okay transparent .gif with text if you give the transparency a broad tolerance an make all partially transparent pixels opaque.
If you don't know PHP, I'm pretty sure you can just cut and paste this snippet in (as long as your ISP has php enabled); just be sure to use a ".php" file suffix instead of ".html" on any file you use it in.
This is for IE 6.*. If you want to include earlier versions of IE, you'll need to modify the regex. I may get around to it, but I'll tell you, worrying about pre-6.0 IE is not a big priority for me. (PS the code goes where the beginning of "<img " would go in html.) |
![]() |
| Tags |
| css |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PNG Transparency in IE6 | Jack Franklin | Web Page Design | 1 | Jan 26th, 2008 15:47 |
| PHP Image Transparency | tox0tes | PHP Forum | 2 | Dec 28th, 2007 00:31 |
| PNG transparency fon IE 6 | Voodoochilli | Webforumz Cafe | 10 | Jul 19th, 2007 14:26 |
| transparency | Daniel | Graphics and 3D | 10 | Jan 16th, 2007 20:17 |
| PNG Transparency in IE 5 | darudeuk | Graphics and 3D | 2 | Jun 9th, 2006 19:35 |