Michael Wilson wrote:
>.divBanner {
> background: #DDD url(../theme_image/bannerbck.gif);
> border-bottom: 1px solid gray;
> padding: 0.2em;
>}
>
>In the above, adding the background color (#DDD) to 'background:' will
>provide a default color for the element in the case images are
>unavailable or undesired.
Just a quick note that the background color is ALWAYS applied, not
just when images are unavailable. This can matter if you are using a
partially transparent image as a background and don't want the
background color to apply if the image is loaded. At the moment,
there is no way in CSS to check for image loading before applying a
background color. This would have to be done through scripting.
This capability has been mentioned several times in connection with
CSS3, but (without checking) I don't think anything concrete has made
it into the draft specs, yet, and I'm certain nothing useful is
supported by actual browsers at this time.
-Adam Kuehn
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/