|
|
|
Background Color
The background of the page is the overall most important element. The background color is specified within the <body> tag at the beginning of your document. So, if you write in your HTML page. <body bgcolor=green> You will create a green background. Only a limited number of colors can be specified by name, and different browsers recognize different sets of colors. If you want to be precise about your background, you'll want to replace the name of the color, with a hexadecimal code. So your HTML would look something like this: <body bgcolor=#CCCCCC> The "CCCCCC" represents the RGB value of white, translated into hexadecimal. Any color that can be displayed on a monitor can be described by its RGB value - its relative amounts of red, green, and blue (each of which is expressed as a two-digit number, such as 51 or 14 or 00). In order for a Web browser to understand the RGB values, they must each be translated into a hexadecimal (or base-16) number. Then the resulting two-digit hexadecimal ("hex" for short) numbers are strung together into a single six-digit code. So in the example above, the first two "c"s stand for the red value, the next two stand for green, and the last two for blue. Now, if you
don't want to bother with calculating those numbers download
a free version BK Color Picker from
http://www.orbit.org/bkprog/ BK Colour Coder is designed to be a one-stop
solution to manipulating the <body> tag in an HTML document. It supports the
changing of margins, background images and, of course, colours for all the
different document properties. This last one is by far the most powerful aspect
of the program; hence the name. Repeat this formula for the Blue value, and then string them together (you should get 33DB99).
|
|
PO Box 22157 Knoxville, Tennessee 37933-0157 Telephone: 865-300-3804 FAX: 865-692-9247
|