Template: Clear

(Created page with "<div style="clear:all"></div><noinclude>{{documentation}}</noinclude>")
 
(fix)
 
Line 1: Line 1:
<div style="clear:all"></div><noinclude>{{documentation}}</noinclude>
<div style="clear:{{{1|both}}}"></div><noinclude>{{documentation}}</noinclude>

Latest revision as of 23:34, 8 October 2017

[edit] Template documentation

From the CSS spec:

The clear CSS property indicates which sides of an element's box(es) may not be adjacent to an earlier floating box. The 'clear' property does not consider floats inside the element itself or in other block formatting contexts.

Values have the following meanings when applied to non-floating block-level boxes:

left
Requires that the top border edge of the box be below the bottom outer edge of any left-floating boxes that resulted from elements earlier in the source document.
right
Requires that the top border edge of the box be below the bottom outer edge of any right-floating boxes that resulted from elements earlier in the source document.
both
Requires that the top border edge of the box be below the bottom outer edge of any right-floating and left-floating boxes that resulted from elements earlier in the source document.
none
No constraint on the box's position with respect to floats.
Discuss this page