latest reactions

spider
One way is to google for page which cont …
andy
you can find this tool here http://andy. …
Tjarko
Eej Walker, that's pretty cool, I will c …
Walker
Thanks for posting your thoughts. I modi …
Albert
Thanks !! …

Clicky Web Analytics
Use OpenDNS
ZERIGO DNS

Ultimate dns hosting based on pre-defined templates, DNS redirection and lot's more.

mxna feeds

CF101 Archive: September 2007 Object Oriented PizzaJob Opening for ColdFusion Developer at Arizona State UniversityMy New Experience Getting ColdFusion Builder 2 Console WorkingCF101 Archive: February 2007 Data Table GatewaysJob Opening for Sr. ColdFusion Developer in CA/ San Fernando ValleyColdFusion Supports HTTP Verbs PUT And DELETE (As Well As GET And POST)Best wishes for the new FuseboxCF101 Archive: January 2007 Data Access ObjectsOpen Source Conference For CFML DevelopersSkype Blocking Web Services with IIS, ColdFusion & RailoCF101 Archive: October 2006 Five Cool Things with ColdFusionGenerate a tag cloud from an RSS feed with ColdFusionColdFusion MeetUp: Cloudy with a Chance of Tests, with Mike HenkeReminder - Adobe CookbooksCF101 Archive: September 2006 A first look at FusionDebug

All files are strictly confidential: all information is classified.
© Copyright 2002 - 2012 mximize.com.
All right reserved.

Visit Carlos GallupaMXNA webfeed

PNG transparancy images in IE with CSS

Yes.. it can be done!! and so simple.... it's hard to believe that it works. Look at the code below to show your tranparant PNG also in Internet Explorer.

.pngholder{
                width:100px;
                height:100px;
                filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='imagelocation');
}

.pngalpha {
                filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);
                background:url(imagelocation) no-repeat;
                width:100px;
                height:100px;
}

<!--- And this is your code to implement the image --->
<div class="pngholder"><div class="pngalpha"></div></div>

A PNG image is much nicer with transparancy then a GIF image. I needed this on a site for an advertising company that had a really nice logo on a random background. The GIF image was crap but the PNG was really good!! so I used the PNG to discover that transparancy didn't work in IE.... at least until my CSS guru came with the above solution.

18282 viewed | 9 opinion(s)  | del.icio.us | Digg it | Tjarko @ 27/09/05 16:47 cet


Reactions:

Brian Rinaldi wrote.... (mail)

You should check out my blog, I have given several posts on this topic:

PNG Fix and PNG Rollover Buttons in IE:
http://www.remotesynthesis.com/blog/index.cfm/2005/9/26/PNG-Transparency-Rollovers-in-IE

General PNG IE Fix:
http://www.remotesynthesis.com/blog/index.cfm?mode=entry&entry=9FD97A65-D610-4595-0CED97212E4FB248

PNG Background Images in IE:
http://www.remotesynthesis.com/blog/index.cfm?mode=entry&entry=37FD9639-D610-4595-096FF45C39E68DF1

27 September 2005 16:56 cet  

Tjarko wrote.... (site)

Txns Brian!! good links

27 September 2005 17:04 cet  

Britt wrote.... (mail)

Doesn't work for me.None of the transparent areas are showing up.You mind actually implementing a demo of this functionality directly in a test page so that I can view the image and code directly in the page itself?

Thanks.

27 September 2005 18:35 cet  

Tjarko wrote.... (site)

Hi Britt, the site i'm referring to above is the following. The logo and the text on the left are both PNG images. CSS is included in the sourcecode because it's still in development.

http://agh.projects.zelluf.org/

27 September 2005 23:09 cet  

yuanyuan wrote.... (site)

this is my way,
work IE5+, FF1.0+

http://blog.yam.com/yuanyuan/archives/564273.html

26 January 2006 13:17 cet  

jax wrote....

@yuanyuan

Your blog is a bit tough to decipher. ;-)

03 February 2006 14:17 cet  

araalix wrote.... (site)

Well, this saved my day!!!

04 April 2006 15:53 cet  

Toby wrote.... (site)

http://homepage.ntlworld.com/bobosola/pngtest.htm

Read this page fully and most of your questions should be answered :]

10 April 2006 17:49 cet  

Marcelo wrote....

it did not work.

15 October 2007 6:35 cet  

Leave your comment

Your name


Your url/website/link/email....


Some room for your reaction is placed here..



The answer to the ultimate question is?? (42 ;-))




URL en mail addresses are translated for you... life sometimes is that simple!!