Cascading Style Sheets (CSS); Backgrounds (part 1 of 2)
By Will Bontrager
2003-10-10
Reader Rating:

Tiled Image
This will put a background image into your web page, the image repeating across the top, row by row, until the web page background is covered.
<style type="text/css">
<!--
BODY { background-image: url(image.jpg); }
-->
</style>
The URL can be specified as relative or absolute. The following are all valid formats:
url(image.jpg);
url(graphics/image.jpg);
url(http://domain.com/pictures/image.jpg);
Copyright 2004 Bontrager Connection, LLC
If you found this article interesting, you may want to read these as well:
» Cascading Style Sheets (CSS); Backgrounds (part 2 of 2)
» Cascading Style Sheets (CSS); Learning More
» Cascading Style Sheets (CSS); Getting Started
|