Applying Style

Now with the structure of style rules under your belt, let's take a quick tour of popular styles. The full spectrum of style rules and possible values can be found in the CSS recommendations on the W3C Web site. CSS Level 1, the first version of CSS, is located at http://www.w3.org/TR/REC-CSS1. CSS Level 2, which builds upon Level 1, is found at http://www.w3.org/TR/REC-CSS2/. CSS1 covered the basics: fonts, list formatting, and box properties such as margins and padding. CSS2 continued the work by adding control of positioning, the ability to float boxes in a given area, and what's known as the z-index, for a psuedo-three-dimensional presentation.

At present not all browsers fully implement CSS1. CSS2 support in browsers is far ...

Get XHTML by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.