Change page background color
In Notepad, open format.css.On the first line of the style sheet, add formatting for the tag:body {
background: #ffffcc;
}h1 {
font-family: verdana,helvetica,sans serif;
font-weight: bold;
font-size:16pt;
}h2 {
font-family: verdana,helvetica,sans serif;
font-weight: bold;
font-size: 14pt;
}p {
font-family: arial,helvetica,sans serif;
font-size: 10pt;
}li {
font-family: arial,helvetica,sans serif;
font-weight: bold;
font-size: 10pt;
}
Save format.css.
- View the site's pages in the browser.
- The background color of each page should now be pale yellow.
Hexadecimal colors
The ffffcc that stands for pale yellow is a hexadecimal color. Hexadecimal colors allow you to specify colors more precisely than you can with words. For shades of color, hexadecimals must be used.
They work like this:
Computers show color as a mix of red, green and blue. In hexadecimal colors, the first pair of letters or numbers signify red, the second pair signify green, and the third pair signify blue:
Red | Green | Blue |
ff | ff | cc |
The color values go from the maximum amount of color (ff) to no color at all (00). For example, Navy blue would be shown in hexadecimals as no red (00), no green, (00), and a little bit of blue (66):
000066