Book HomeCascading Style Sheets: The Definitive GuideSearch this book Thursday 29th of September 2016 12:08:46 AM

Copyright © 2000 O'Reilly & Associates, Inc. All rights reserved.

Printed in the United States of America.

Published by O'Reilly & Associates, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.

Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered trademarks of O'Reilly & Associates, Inc. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O'Reilly & Associates, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps. The association between the image of a koala and the topic of HTML and XHTML is a trademark of O'Reilly & Associates, Inc.

While every precaution has been taken in the preparation of this book, the publisher assumes no responsibility for errors or omissions, or for damages resulting from the use of the information contained spacing to be in proportion to the size of the text.</P>

Figure 4-52

Figure 4-52. Inherited letterspacing

The only way to get an effect where the letterspacing is inproportion to the size of the text is to set it explicitly, with theresult shown in Figure 4-53:

P {letter-spacing: 0.25em;}SMALL {font-size: 50%; letter-spacing: 0.25em;}<P>This spacious paragraph features <SMALL>tiny text which isproportionally spacious</SMALL>, which is what the author
herein.



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.

Theborder of an element is simply a line (sometimes more than one) thatsurrounds the content and padding of an element. Thus, the backgroundof the element will stop at the outer edge of the border, since thebackground does not extend into the margins, and the border is justinside the margin. The CSS specification strongly implies that thebackground extends to the outside edge of the border, since it talksabout the borders being drawn "on top of the background of theelement," but not all browsers seem to agree. This is importantbecause some borders are "intermittent" -- for right content edge of the first box, and the left is taken from the last box. The top and bottom are the same.

If there is no such ancestor, then the content edge of the root element is used to establish a containing block.

The main thing to remember about the containing block is that it establishes a formatting context for all of its descendant elements.