12345678910111213141516171819202122232425 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Multiple backgrounds on a single element</title>
- <style>
- .multi-bg {
- width: 300px;
- height: 200px;
- background-image: url(img/spades.png),
- url(img/hearts.png),
- url(img/diamonds.png),
- url(img/clubs.png);
- background-position: left top, right top, left bottom, right bottom;
- background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
- background-color: pink;
- }
- </style>
- </head>
- <body>
- <div class="multi-bg">
- </div>
- </body>
- </html>
|