HTML/CSS/CSS Attributes and Javascript Style Properties/background image

Материал из Web эксперт
Перейти к: навигация, поиск

"background-image" Example

   <source lang="html4strict">
   

<html> <head> </head> <body>

           indicate background image
           








           background-image is from url(http://www.wbex.ru/style/logo.png). 
           

</body> </html>


     </source>
   
  


background-image: url("backgroundImage.jpg");

   <source lang="html4strict">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html>

   <head>
       <title></title>
       <style type="text/css">
           html, body {
               height: 1000px;
           }
           body {
               background-image: url("backgroundImage.jpg");
           }
       </style>
   </head>
   <body>
   </body>

</html>

</source>