Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-12-31 10:14:54

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

easy png transparency in ie6

Just came across this article which might be of use here.

As the code does not validate i use it in an ie conditional in the head

<!--[if IE 6]>
   <style type="text/css">
   /*<![CDATA[*/ 
img, #yourdiv { behavior: url(iepngfix.htc);}
   /*]]>*/
   </style>
<![endif]-->

enjoy


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 2006-12-31 14:18:05

TNT
Member
From: Rotterdam, Netherlands
Registered: 2006-01-06
Posts: 256
Website

Re: easy png transparency in ie6

Looking good.

But where do you save the file ‘that must be in the CSS directory’ (as stated in the article)?


Prrrrrrrr

Offline

#3 2006-12-31 16:17:41

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: easy png transparency in ie6

I just uploaded it in the server and the called it in the conditional css

<!--[if IE 6]>
   <style type="text/css">
   /*<![CDATA[*/ 
img, #yourdiv { behavior: url(http://mysite.com/iepngfix.htc);}
   /*]]>*/
   </style>
<![endif]-->

in the code you have to change #yourdiv to wherever you have the png and mysite.com:)

Last edited by colak (2006-12-31 16:30:33)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 2007-01-01 10:29:51

TNT
Member
From: Rotterdam, Netherlands
Registered: 2006-01-06
Posts: 256
Website

Re: easy png transparency in ie6

It works! Thanks again for this great tip.


Prrrrrrrr

Offline

Board footer

Powered by FluxBB