/ Published in: CSS
CSS3 multiple backgrounds with fallback color.
For compatibility info see http://caniuse.com/#search=multiple%20background
For compatibility info see http://caniuse.com/#search=multiple%20background
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
.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; }