Template:Clear/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>GreenComputer
m Modified TemplateData
meta>Milker
No edit summary
Line 17: Line 17:
===Example without {{tlf|clear}}===
===Example without {{tlf|clear}}===
[[File:HeidelbergTun.jpg|200px|left]]
[[File:HeidelbergTun.jpg|200px|left]]
{{Lorem}}
{{Lorem ipsum}}


====New section without template====
====New section without template====
Line 25: Line 25:
===Example that uses {{tlf|clear}}===
===Example that uses {{tlf|clear}}===
[[File:HeidelbergTun.jpg|200px|left]]
[[File:HeidelbergTun.jpg|200px|left]]
{{Lorem}}<br/>'''{{tnull|clear}}'''
{{Lorem ipsum}}<br/>'''{{tnull|clear}}'''
{{clear}}
{{clear}}



Revision as of 06:50, 6 January 2020


This template adds <div style="clear:both;"></div>, <div style="clear:left;"></div>, or <div style="clear:right;"></div>; for technical HTML details, see Template talk:Clear.

{{clear}}: Makes content wait until existing content is completed in all columns. Often used to stop text from flowing next to unrelated images.

Usage

{{clear}}
{{clear|left}}
{{clear|right}}

Example without {{clear}}

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

New section without template

See how this section starts at the right of the image?

Example that uses {{clear}}

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
{{clear}}

New section with template

See how this section appears below the image?


See also