Google

Monday, April 30, 2007

This is a short guide to styling your Web pages. It will show you how to use W3C's Cascading Style Sheets language (CSS) as well as alternatives using HTML itself. The route will steer you clear of most of the problems caused by differences between different brands and versions of browsers.
For style sheets to work, it is important that your markup be free of errors. A convenient way to automatically fix markup errors is to use the HTML Tidy utility. This also tidies the markup making it easier to read and easier to edit. I recommend you regularly run Tidy over any markup you are editing. Tidy is very effective at cleaning up markup created by authoring tools with sloppy habits.
The following will teach you how to:
use the style element
link to separate style sheets
set page margins
set left and right and first-line indents
set the amount of whitespace above and below
set the font type, style and size
add borders and backgrounds
set colors with named or numeric values
add style for browsers that don't understand CSS

Read More..