CodeAve.com CodeAve.com - CSS - Page Display
ASP
JavaScript
CSS
·Basics
·Page Display
·Text Display
·Script Writers
·Contents
·What's New?
HTML
Maps
Links
Mail List
Search
Sitemap


 


Background Image
CSS background images work very similar to the background command in html. When applied within the <body> tag it will the image will repeat and fill the entire page. This may seem redundant to the background tag, however since the background tag is typically applied to each page and CSS are usually linked throughout a site, you can easily in one place, change the backgrounds to many pages similar to what Yahoo.com did recently for breast cancer awareness or what Excite.com seems to do every Halloween.
View the Output
Text View
Print View
Mail this Link
Download the Code

<html>
<head>
<title>CodeAve.com/CSS - Body Background Image</title>
<style type="text/css">
<!--
body {background-image:
url(images/bg1.gif) }
/* Setting the body tag with a background-image attribute
will fill in the entire browser with the referenced image 
repeated by default */
-->
</style>

</head>

<body>
<center>

The background of this page is utilizing an image 
that is repeated (by default) to fill the browser window.

</center>
</body>
</html>

 

 

 



ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
Server Variables | Response Objects | Random Events | Miscellaneous
HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
JavaScript: Document Info | Forms | Images | Navigation | Script Writers
CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
Links | Search Engine db |  Privacy Statement |  Advertising Rates |  Email

CodeAve.com is hosted by MyHosting.com
Donate Food Online with a Mouse Click at TheHungerSite.com
Donate Land Online with a Mouse Click at TheRainForestSite.com
© 1999 - 2010 CodeAve.com
All Rights Reserved