Template talk:Clear floats

From ThinkWiki
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.

 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

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