Like with text manipulation, CSS allows for broad or narrow changes in page colors. A designer may change a color of an element throughout the site or only for an individual element. Colors can be applied to about any element (besides images) which we have examined thus far. Today we address two fundamental means of changing colors within a page:
The values used to manipulate colors may be the following:
Examples of coding color with hexadecimal values:
body {
background-color: #333333;
}h1 {
color: #ffffff;
background-color: #000000;
}p {
color: #999999;
}
Good idea to consider many different schemes when deciding on colors.
If unsure about harmony between multiple colors, choose a single color and work with shades of that color.
This ensures easy readability.
The selection of color should not distract the visitor from the content
Audience considerations should be reflected in color and font choices
Children's site may have many colors, a financial site should not
Limiting your palette limits your potential for color chaos
By relating the border to the background color, content can either be brought out from background or merged with background gradually
Examples: merging with background / standing out from bg
When designing a site or page around a photso or series of photos, select a color from the photograph for use in the template. Use the PS color picker.
Example: desert page
Color blindness affects 1/12 people -- males are more susceptible than females -- and most often affects perception of red and greens (though blues are also affected rarely).
Matthew Blake Department of Journalism CSU-Chico
mdblake@csuchico.edu (530) 898-3608