Book Home Sunday 24th of May 2015 04:58:36 PM Cascading Style Sheets: The Definitive GuideSearch this book

Full Text Search

If you are having difficulty searching, or if you have not used this search utility before, please read this.

Library Navigation Links

Copyright © 2002 O'Reilly & Associates, Inc. All Rights Reserved.

Speaking of list items, they have a fewspecial rules in addition to everything discussed so far. List itemsare typically preceded by amarker, such as a small dotor a number. This marker isn't actually part of thelist-item's content area, so you get effects like thoseillustrated in Figure 8-25.

box. First, for each inline nonreplaced element (or string of textoutside of an inline element), the font-size isused to determine the initial content-height.Thus, if an inline element has a font-size of15px , then the content-height starts out as15px .

Second, all of the inline elements in a given line are alignedaccording to their values for vertical-align. Bydefault, this will cause all text in the line to be aligned along given by the CSS2 specification and leave things there. Perhaps thesecond edition of this book will contain more practical advice, butat this time, the only practical advice we can give is this: testyour positioning code thoroughly, and be prepared for inconsistenciesbetween positioning implementations.

9.1. General Concepts

Before delving into the specific mechanisms of positioning, we needto establish a number of concepts. These concepts actually form the