A Digital Age Deserves A Digital Leader

IE PNG fix+css

IE PNG fix+css

Postby ChevinBrown » Wed Apr 04, 2007 10:33 pm

I've been trying to find a PNG fix for IE 6.

I've tried the iepngfix.htc--this works through css, but the css isn't valid.
I've tried the javascript, but this won't fix transparent png backgrounds in css...

Is there an alternate png fix that corrects background css images?
PRO Level 10
Posts: 410
Joined: Wed Aug 18, 2004 2:10 pm

Postby conf » Wed May 16, 2007 4:12 am

IE 6 or earlier versions does not support 24-bit transparency on png images.
One approach Is to use 8-bit PNG or you can also use a gif with a stroke the same color as the background.
There also some hacks and methods that you can find.
Please check here,here and here

Finally If the way you tested was working smoothly for you,there is way to bypass the W3C validation problem.
You can target IE with IE conditional comments.

Code: Select all
<if>
<link>
<endif>


This will feed an IE-only style sheet to IE. :-)

EdiTed: Sorry It's not allowed to post code in this Board :no
PRO Level 2
Posts: 14
Joined: Tue May 15, 2007 8:06 pm

Postby ChevinBrown » Wed May 16, 2007 7:51 pm

I just need a fix that is WC3 valid. I like the css one best, but I always get an error when validating.
PRO Level 10
Posts: 410
Joined: Wed Aug 18, 2004 2:10 pm

Postby conf » Wed May 16, 2007 9:24 pm

unfortunately,as I said before,
i know the way so you can bypass the validation error but it is not allowed to me to show you the code.

so I can't do anything about that.
To be honest, I don't understand why in a code forum,
this Board deny the code posting but rules are rules :/
PRO Level 2
Posts: 14
Joined: Tue May 15, 2007 8:06 pm

Postby ChevinBrown » Wed May 16, 2007 9:42 pm

Could you explain the validation bypass error? (PM it to me, if you can)
PRO Level 10
Posts: 410
Joined: Wed Aug 18, 2004 2:10 pm

Postby OrphicFireball » Mon Jul 09, 2007 11:47 pm

Consider this: http://dean.edwards.name/IE7/

It will make transparent pngs work correctly and apply many css fixes. It all runs through a simple javascript file. It's amazing.
"Pencil and paper /n./: an archaic information storage and transmission device that works by depositing smears of graphite on bleached wood pulp. More recent developments in paper-based technology include improved `write-once' update devices which use tiny rolling heads similar to mouse balls to deposit colored pigment. All these devices require an operator skilled at so-called 'handwriting' technique."
PRO Level 12
User avatar
Posts: 612
Joined: Sat Aug 14, 2004 7:43 am
Location: USA

Postby gries818 » Tue Jul 10, 2007 2:48 am

ChevinBrown wrote:I just need a fix that is WC3 valid. I like the css one best, but I always get an error when validating.


try correcting the problems it lists (sometimes though it is impossible :( )
Image

Mac OS 10.6.7 - Personal
Ubuntu Server 11.04 - Server
Software Development
User avatar
Posts: 3991
Joined: Wed Jul 07, 2004 6:28 pm

Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 5 guests

cron
cron