Difference between revisions of "Template:ClearFloats"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Hitbts
m (needed to be a CSS block)
imported>Qazaaq
(Added categories.)
 
Line 4: Line 4:
This template (<code><nowiki>{{ClearFloats}}</nowiki></code>) allows you to ''clear'' a float: content after the template will be shoved down below the floated content/image, to avoid the wrapping effect.
This template (<code><nowiki>{{ClearFloats}}</nowiki></code>) allows you to ''clear'' a float: content after the template will be shoved down below the floated content/image, to avoid the wrapping effect.
</noinclude>
</noinclude>
[[Category:Templates]]

Latest revision as of 22:50, 3 September 2019

When you float an image to the left or right, text will wrap around it; this is pretty standard formatting. Problem is, this effect can't really be contained. If the floated image is underneath a section heading and the image is longer than the content of that section, then content from the next section(s) will also wrap around the image.

This template ({{ClearFloats}}) allows you to clear a float: content after the template will be shoved down below the floated content/image, to avoid the wrapping effect.