Posted By

Moonsheeld on 01/24/11


Tagged

background CSS3


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

stavros


CSS3 multiple backgrounds


 / Published in: CSS
 

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

  1. .mydiv {
  2. background: url(bkg1.png) repeat top left,
  3. url(bkg2.png) repeat top left,
  4. /* ... */
  5. ;
  6. /* Fallback for browsers who don't support multiple backgrounds;
  7.   the background color won't be displayed unless it's declared separately. */
  8. background-color: #000;
  9. }

Report this snippet  

You need to login to post a comment.