Wednesday 05th of August 2015 08:21:44 AM

Book Home

Cascading Style Sheets: The Definitive GuideSearch this book

Index

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 inline box. This is done by dividing the leading in half andapplying each half-leading to the top and bottom of the content area.The result is the inline box. For example, if the content area is 14points tall, and the line-height is set to 18points, then the difference (4 points) is divided in half, and eachhalf applied to the top and bottom of the inline box to arrive at aninline box which is 18 points tall. This sounds like a roundabout wayto describe how line height works, but rest assured that there areexcellent reasons for the description. See Chapter 8, "Visual Formatting", for a detailed explanation of the inlineformatting model.
Library Navigation Links

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

the origin image has been placed in the center of theBODY element and then tiled along the y-axisin both directions-- in other words, both upand down. In a similar fashion, when the repeatdirection is horizontal, the background image is repeated to both theright and the left, as shown in Figure 6-50:

BODY {background-image: url(bg23.gif);background-repeat: repeat-x;

If you wanted to make sure that a document uses italic text in familiar ways, you could write a style sheet like this:

P {font-style: normal;}
EM, I {font-style: italic;}

As we can see in Figure 5-25, these styles would make paragraphs use an upright font, as usual, and cause the EM and I elements to use an italic font -- again, as usual.

P.clear {visibility: hidden;}P.clear EM {visibility: visible;}

As for visbility: collapse,this value is used in CSS table rendering, which isn't coveredin this book because it wasn't well implemented as the book wasbeing written. According to the CSS2 specification,collapse has the same meaning ashidden if it is used on nontable elements. From asemantic standpoint, this seems somewhat confusing (since