Chapter 3 Configuring Color & Text with CSS
Now that you have been introduced to XHTML, you are ready to explore Cascading Style Sheets (CSS). CSS is not new—it was first proposed as a standard by the W3C in 1996. However, browsers and other user agents have only supported this technology consistently for the past few years.
Now that there is fairly steady support, Web developers have begun to use CSS to separate the presentation style of a Web page from the information on the Web page itself. CSS is used to configure text, color, and page layout. This chapter introduces you to the use of CSS on the Web as you explore configuring color and text.
Resources & Chapter Links
- Inspiration
- CSS Documentation
- W3C CSS Validator
- CSS References
- Accessiblity: Vischeck Color Deficiency Simulator
- Usability: WebAIM Text Layout Techniques
- TheCounter.com Site Statistics
Choosing Fonts for your Web Site
Not every computer is guaranteed to have the same font typefaces installed. If a web designer configures a font that is not present on the vistor's computer, the browser default (usually a serif font such as Times New Roman) will be displayed.
So, the question is: What fonts are safe to use?
The answer can be found at the Web-Safe Font Chart.
Design Ideas for Headings
Check out A Command of Headings: Usage and Styling for a collection of design ideas (with CSS code) for configuring a headings on your web pages.
Selecting Colors for Your Web Site
If you are new to design, it can be a tough decision to select colors for your website. Here are some sites that can help you with the process:
- The Color Wizard offers a variety of ways to choose and compare a variety of color schemes related to a chosen starting color.
- Eric Meyer's Color Blender is very useful when you want to create site with a monochromatic color scheme.
- Sometimes designers choose colors based on a photograph. Visit colr.org to select a image from the Web and choose colors from from the image for use in your site.
- WellStyled.com offers a handy color scheme generator that will create a variety of color schemes including monochromatic, contratsing, triad, tetrad, and analogic.
- If you need some logo-building inspiration, Graphic Design Journal offers this look at trendy logo designs of 2005 and a report on logo trends of 2006.
- Hypergurl.com offers a color scheme generator that shows a quick preview of text and background colors.
- The color selector at Colors4WebMasters offers point and click color choosing options, immediately shows you the results, and generates CSS to configure the colors.
- Use the RGB sliders to choose a color and Lee Street Management's QuickColor Flash animation will display a selection of coordinating colors.
- Color Wheel Pro - a program that allows you to see color theory in action: you can create harmonious color schemes and preview them on real-world examples.
- Adobe's Kuler offers an easy way to browse color schemes or search for a color scheme based on a keyword or theme, such as desert.
- Steel Dolphin Color Scheme offers a flash animation helps you to select a color scheme for your site.
- Bruce Clay offers an overview of using color in web design focusing on the the hidden meanings of color, branding, and the power of color.
- Colorcombos.com offers a collection of color combinations for your choice and even provides a method to quickly grab the color palette of a web site.
Chapter Updates
Page 81
The third paragraph should be as follows:
If there is more than one property, they are separated by a semicolon (;). The following code configures the heading with a red text color and a gray background color.
Questions or Comments?
The author would like to hear from you!
Send an e-mail to webdevfoundations@gmail.com
