To avoid this sort of thing, and to make sure that
H2 elements do not coexist on a line with any
floated elements, we use the value both. This
value prevents coexistence with floated elements on both sides of the
element, as shown in Figure 7-76:
H2 {clear: both;}
Figure 7-76. Clear on both sides
If, on the other hand, we're only worried about H2 elements flowing past floated elements to their right, then we'd use H2 {clear: right;}, with the result shown in Figure 7-77.
Figure 7-77. Clear to the right
Here is my Web Page with a background image!
Tuesday 07th of February 2012 01:12:21 AM