background-image-001.html (707B)
1 <!DOCTYPE html> 2 <title>CSS Backgrounds: background-image div</title> 3 <link rel="author" title="Justin Hill" href="http://www.justin-hill.com"> 4 <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-image"> 5 <link rel="match" href="reference/background-image-001-ref.html"> 6 <meta name="assert" content="Test checks that background-image displays raster image for div background."> 7 <style> 8 .container { 9 top:50px; 10 left:50px; 11 width: 100px; 12 height: 100px; 13 background-image: url("support/green.png"); 14 background-color: red; 15 } 16 </style> 17 <body> 18 <p> Test passes if green image shows and no red visable.</p> 19 <div class="container"></div> 20 </body>