Friday 20th of April 2018 04:45:11 PM

Book Home

Cascading Style Sheets: The Definitive GuideSearch this book

Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z 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 normal, since that is the next-heaviest face

Index: K

keywords: 2.1.3. Declarations
for background positioning: Keywords
multiple: 2.1.3. Declarations
number: 5.2.1. How Weights Work
transparent: 6.1.2. Background Color
kursiv text: 5.4.1. Fonts with Style

Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Library Navigation Links

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

isn't a surprise, but it is important to remember.

As is the case for shorthand properties, if you leave out any values,the defaults for the relevant properties are filled in automatically.Thus, the following two are equivalent:

BODY {background: white url(yinyang.gif;}BODY {background: white url(yinyang.gif) top left repeat scroll;}

What's even better, there are no required values forbackground -- as long as you have at least one H1 {font-weight: bold;}H1 B {font-weight: bolder;} /* if no bolder face exists, evaluates to '800' */P {font-weight: 100;} /* assume 'Light' face exists ; see explanation */P STRONG {font-weight: bolder;} /* results in 'normal' text, weight '400' */

Figure 5-10

Figure 5-10. Text trying to be more bold

In the first example, the user agent moves up the weight ladder fromnormal to bold ; in numericterms, this is a jump from 400 to700. In the second example, H1text is already set to bold. If there is no bolderillustrated in Figure 8-33.

Figure 8-33

Figure 8-33. Unlike balloons, floated elements can't float upward

5. A floating element's top may not be higher than the top of any earlier floating or block-level element.

Similar to rule 4, this keeps a floated element from floating all the way to the top of its parent element. Thus, if a DIV 's first child element is a paragraph, followed by a floated image and then another paragraph, the top of