Template talk:Clear floats

From ThinkWiki
Revision as of 14:50, 27 December 2005 by Thinker (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This makes sure the following text is not obscured by a float.

Example:

{{HINT float|20em|Float containing a lot of text which will overlap with full-width elements below it.}}
text text text text text text text text text text text text text text text text text text text.

 preformatted text

produces


Hint:
Float containing a lot of text which will overlap with full-width elements below it.

text text text text text text text text text text text text text text text text text text text.

Very long preformatted text which will be obscured by floats to its right if not cleared by this template

but

{{HINT float|20em|Float containing a lot of text which will overlap with full-width elements below it.}}
text text text text text text text text text text text text text text text text text text text.
{{Clear floats}}

 Very long preformatted text which will be obscured by floats to its right if not cleared by this template

produces


Hint:
Float containing a lot of text which will overlap with full-width elements below it.

text text text text text text text text text text text text text text text text text text text.

Very long preformatted text which will be obscured by floats to its right if not cleared by this template