Book Home Thursday 23rd of March 2017 09:03:43 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

Figure 5-26

Figure 5-26. More font styles

If either of these is the case, a few things can happen. If there isno Italic face, but there is an Oblique face, then the latter can beused for the former. If the situation is reversed -- an Italicface exists, but there is no defined Oblique face -- the useragent may not substitute the former for the latter, according to theCSS specification. Finally, the user agent can simply generate theoblique face by computing a slanted version of the upright font. Infact, this is what most often happens in a digital world, where Copyright © 2002 O'Reilly & Associates, Inc. All Rights Reserved.

which are replaced elements.


Note that none of this applies to table elements. CSS2 introduces new properties and behaviors for handling tables and table content, and these new features behave in ways fairly distinct from either block-level or inline formatting. See Section 10.1, "Changes from CSS1" for an overview.

It's also possible to mix up the types of length value you use.You aren't restricted to using a single length type in a givenrule, as shown here:

H2 {margin: 14px 5em 0.1in 3ex;}  /* value variety! */

Figure 7-9 shows us, with a little extraannotation, the results of this declaration.

font-size of the element itself, not the parentelement.

Figure 8-61

Figure 8-61. Assigning the line-height property to inline elements

It's important to keep these sorts of things in mind whenyou're trying to do things like add borders to an inlineelement. Let's say you want to put 5-pixel borders around anyhyperlink:

A:link {border: 5px solid blue;}