Return to Snippet

Revision: 31801
at September 13, 2010 20:54 by Masis


Initial Code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
 <title>background-image</title>
 <style type="text/css">
  BODY {
   background-image: url(images/bg.jpg); /* Path to the background image */
   background-color: #c7b29a; /* Background color */
  }
 </style>
 </head>
 <body>
  <p>...</p>
 </body>
</html>

Initial URL
http://phpforms.net/tutorial/tutorial.html

Initial Description
It determines background image for the element. If the background color is specified for the element at the same time it will be shown while the background image will have been downloaded fully. The same will happen if the image is inaccessible or their demonstration in the browser is switched off. When there are transparent areas in the image you can see the background color through them.

Initial Title
СSS: background-image

Initial Tags
image, background

Initial Language
CSS