PNG and fixes - other approach

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
jack4ya
Power Poster
Power Poster
Posts: 294
Joined: Thu Oct 19, 2006 10:07 am

PNG and fixes - other approach

Post by jack4ya »

Not a question but a note to some developers/builders

I see questions around about how to fix png. Most answer with "use pngfix" from Twinhelix.
Although still usefull in complex situation, I switched to BelatedPNG by DillerDesign.

1) You need the script, google it, find it, upload it (I usually upload it to the root)
2) Post this piece of code (in the template)




    DD_belatedPNG.fix(' YOURELEMENTS');



3) Adapt the above code where it says: YOURELEMENTS,
let's say to the styles/tags below use a png in the css, and thus needs to be processed
.example1,
.example2,
img,
#content div,
#menu'

The the line becomes:

 DD_belatedPNG.fix('.example1, .example2, img, #content div, #menu');


That's it!

More info:
http://www.dillerdesign.com/experiment/DD_belatedPNG/
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: PNG and fixes - other approach

Post by Dr.CSS »

If you look in the NCleanBlue theme/template you will see it uses this fix, so if you have it installed you already have everything you need...
Post Reply

Return to “Layout and Design (CSS & HTML)”