Quote:
How do I make a 100px high image stretch to the height of a given cell if
I
don't use CSS and how do I make sure that the image is going to actually
be
transparent within the browser? |
A background image won't stretch; it will only tile (repeat itself). Unless
you have background-repeat:none somewhere in your style rules, a background
image should tile without any further instruction on your part. A simple
repeat-y, as you found, will cause it to tile vertically no matter what.
A regular image (using the img tag) will not stretch beyond the dimensions
specified in the image tag, even though they may be larger than the actual
image. So the graphic will be stretched (with rather poor results, I might
add), but it will still be a static size as specified by the img tag.
The only way to make sure an image will be transparent in the browser is to
view it in the browser. PNG-8 is supported by all the major browsers, but
only single-color transparency is completely supported. Single-color
transparency is the kind of transparency that GIF images use - any given
pixel is either transparent or opaque. If you use alpha-channel
transparency, which allows translucency (50% opaque, stuff like that), then
it will not be supported in IE without some further instructions to the
browser.