Return to Snippet

Revision: 39972
at January 24, 2011 08:26 by Moonsheeld


Initial Code
.mydiv {
    background: url(bkg1.png) repeat top left,
                url(bkg2.png) repeat top left,
                /* ... */
                ;
    /* Fallback for browsers who don't support multiple backgrounds;
       the background color won't be displayed unless it's declared separately. */
    background-color: #000;
}

Initial URL


Initial Description
CSS3 multiple backgrounds with fallback color.
For compatibility info see http://caniuse.com/#search=multiple%20background

Initial Title
CSS3 multiple backgrounds

Initial Tags
background, CSS3

Initial Language
CSS