Book Home Wednesday 26th of October 2016 05:56:18 AM Cascading Style Sheets: The Definitive GuideSearch this book P {margin-left: 5em; position: relative;} <P> Lorem ipsum, dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut <SPAN CLASS="change">***</SPAN> laoreet dolore magna aliquam erat volutpat.</P>

While this does rely on inserting an extra element, the advantage is that the SPAN can be placed anywhere in the paragraph and still have the result depicted in Figure 9-21.

Figure 9-21

Figure 9-21. Setting a "change bar" with absolute positioning

However, maybe we'd like to place the change marker next to

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.

So let's say we want all first-level headings to be maroon. Thebest declaration would be:

H1 {color: maroon;}

Simple, straightforward, and difficult to forget. It doesn'tget much better than that. Here are a few more examples:

H1 {color: gray;}H2 {color: silver;}H3 {color: black;}