/ Published in: CSS
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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!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>
URL: http://phpforms.net/tutorial/tutorial.html