On Thu, March 13, 2008 2:42 pm, Geoffrey Hoffman wrote:
> Can someone point me to a solution for PNG transparency in IE 6 that works
> on tiling background images? (If such as solution exists...)
>

Unfortunately, it can't be done. The IE filter that allows for PNG
transparency
<http://msdn2.microsoft.com/en-us/library/ms532969(VS.85).aspx>
can either stretch an image to fill an element, leave it the same size, or
shrink the element to the size of the image; but it can't tile it, nor
allow it to be positioned anywhere other than the top left of the element.

One could construct some horrendous hack that dynamically created multiple
<div>s, applied the filter to them and used absolute positioning to tile
them behind the content; but I dread to think how many other IE bugs this
would potentially trigger.

Your best bet is to use conditional comments to give IE < 7 an alternate
background image in a format it can cope with.

Regards,

Nick.
-- 
Nick Fitzsimons
http://www.nickfitz.co.uk/


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to