Book Home Sunday 01st of February 2015 10:08:07 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 auto, not margin-right. This isnot so much an issue under CSS1 as it is in CSS2, which introducesproperties related to writing direction.

If both margins are set explicitly, and width isauto, then the value of widthwill be set to be whatever is needed to reach the required total(that is, the content width of the parent element). The followingmarkup is displayed as shown in Figure 8-13: utility before, please read this.

Library Navigation Links

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

combined in the next chapter, but for now, let's just acceptthat they're combined. For example:

<LINK REL="stylesheet" TYPE="text/css" HREF="sheet-a.css"><LINK REL="stylesheet" TYPE="text/css" HREF="sheet-b.css"><P CLASS="a1">This paragraph will be gray only if styles from thestylesheet 'sheet-a.css' are applied.</P><P CLASS="b1">This paragraph will be gray only if styles from thestylesheet 'sheet-b.css' are applied.</P>
Figure 1-3

Figure 1-3. Combining linked style sheets

bold). Since 800 is assigned to the same font face as 700, there is no visible difference between normal H1 text and boldfaced H1 text, but nonetheless the weights are different.

In the last example, paragraphs are set to be the lightest possible font weight, which we assume exists as a Light variant. Furthermore, the other faces in this font family are Regular and Bold. Any EM text within a paragraph will evaluate to

H1 {border-bottom: thick solid gray;}

This will apply the values to the bottom border alone, as shown in Figure 7-45, leaving the others to their defaults. Since the default border style is none, no borders appear on the other three sides of the element.

Figure 7-45

Figure 7-45. Shorthand properties make styles easier

As you may have guessed, there are a total of four such shorthand properties. aren't underlined.

Despite all these issues, the ability to change the colors of elements is something almost every author will want to use, probably quite often. Used properly, colors can really strengthen the presentation of a document. Once you've decided how you plan to use color, you have to decide how you'll apply it, since some approaches will require the use of classes as well as simple element selectors.

serifs may be altered in an italic face. Oblique text, on the other hand, is simply a slanted version of the normal, upright text. Font faces with labels like Italic,
Cursive, and Kursiv are usually mapped to the italic keyword, while oblique can be assigned faces with labels such as Oblique, Slanted,