Email conversation
From | ACUnnamed |
To | Me |
Subject | I need help with PNG images |
Date | 13 July 2005 23:45 |
Is there a way to have transparent pngs work as a background image in a
table? (for older ie browsers)
Thanks for the help!
From | Me |
To | ACUnnamed |
Subject | Re: I need help with PNG images |
Date | 15 July 2005 10:18 |
> Is it possible to use transparent png images as the background for a
> table (in older ie browsers)?
yes. The alphaImageLoader works from IE 5.5, and applies a transparent PNG
as the background for any element. The only requirements are that you have
to set another style on the element that gives it "hasLayout":
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/haslayout.asp
Note that some of those styles are non-standard (writing-mode and zoom)
<style type="text/css">
table {
width: 100%;
background: url(foo.png);
}
</style>
<!--[if gte IE 5.5]>
<style type="text/css">
table {
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='foo.png',sizingMethod='crop'); }
</style>
<![endif]-->
for details of the sizing methods available, see
http://msdn.microsoft.com/workshop/author/filter/reference/properties/sizingmethod_1.asp
There does not seem to be a setting that makes it repeat.
Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/