On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Quote from: pixelchutes at Apr 09, 2007, 04:27 PM

    How does this handle .PNG images as backgrounds in CSS? Since it uses the DOM to reference images on the page, only part of the images have the filter applied. Is there a better solution for CSS-defined (background-image) and HTML-defined .PNG images in MSIE 5.5 & 6 ??

    This seems to be the closest solution I can find (I believe the SAME solution packaged with MODx ...however,I have never used it lipsrsealed )

    http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html (DEMO Link @ Bottom of Page)

    Unfortunately, I don’t think this handles CSS-defined images/backgrounds sad ..Is there a solution?

    This appears to be a modified version that also handles CSS background images, but looks much more messy:


    Hi pixelchutes, I ran into similar issues with CSS-defined PNG backgrounds. After trying a few different methods, I found fix works pretty well -

    Strangely enough, I had to embed the CSS into the main template to get it to work. rolleyes

    Hope this helps.
    • FYI, I am a fan of the twinhelix png fix too, especially the newest test release which is a bit more robust than the RC4 from Nov 2005: http://www.twinhelix.com/test/
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me