Jump to content

Template:Clear/doc: Difference between revisions

Dat Hack3r (talk | contribs)
Created template documentation.
 
Dat Hack3r (talk | contribs)
m We don't use a section for this in this Wiki.
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
This template makes content wait until existing content is completed in all columns. It is often used to prevent text from flowing next to unrelated images.
This template makes content wait until existing content is completed in all columns. It is often used to prevent text from flowing next to unrelated images.


== Usage ==
* {{tlx|clear}} →  
* {{tlx|clear}} →  
*: <code>&lt;div style="clear:both;"&gt;&lt;/div&gt;</code>
*: <code>&lt;div style="clear:both;"&gt;&lt;/div&gt;</code>
Line 12: Line 11:
<div style="border: 1px solid black; padding: 1em; margin: 2em;">
<div style="border: 1px solid black; padding: 1em; margin: 2em;">
=== Example without {{tlx|clear}} ===
=== Example without {{tlx|clear}} ===
[[File:Placeholder.png|400px|left]]
[[File:Placeholder tall.png|200px|left]]
{{Lorem ipsum}}
{{Lorem ipsum}}


Line 22: Line 21:


=== Example that uses {{tlx|clear}} ===
=== Example that uses {{tlx|clear}} ===
[[File:Placeholder.png|400px|left]]
[[File:Placeholder tall.png|200px|left]]
{{Lorem ipsum}}<br/>
{{Lorem ipsum}}<br/>
'''{{tnull|clear}}'''
'''{{tnull|clear}}'''