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

Background Color
Here is the method of specifying a page background color. For single page, put this in the HEAD area. For site-wide implementation, you'll probably want to put the style into your external CSS file.
<style type="text/css">
<!--
BODY { background-color: yellow; }
-->
</style>
Changing the color name (or changing the #ffff00 hexadecimal equivalent), will change the background color of the one page or all pages using an external CSS file.
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
|