Book Home Monday 22nd of September 2014 10:15:27 PM Cascading Style Sheets: The Definitive GuideSearch this book only effect margins have on line-breaking is that, by causing extraspace to appear within the line, they can move content over. This maycause a line to break at a different spot than it ordinarily wouldhave.

Turn to Figure 7-25 to see what happens when aninline element with a margin is displayed across multiple lines:

B {margin: 10px; background: silver;}
Figure 7-25

Figure 7-25. An inline element displayed across two lines of text with a 10-pixel margin

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

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

Example

BODY {background-image: url(bg41.gif);}H2 {background-image: url(http://www.pix.org/dots.png);}

Example

BODY {background-position: top center;}
directions alongthe specified axis. The repeating of a background image begins withthe origin image, whose position is defined by the value ofbackground-position.

Of the browsers which even recognize font-variant:small-caps (Explorer 4 and 5, and Opera 3.5), onlyOpera and IE5 for Macintosh do what authors would expect in thedisplay of the text. Other versions of Explorer take the all-capitalsroute.