Template:Clrl
Jump to navigation
Jump to search
This is the template documentation for {{Clrl}}. It is transcluded from Template:Clrl/doc and may be directly edited there.
The following three templates are directly related.
- Template clr -- This template is a shorthand for
<div style="clear:both;"></div>
.
- clear:both makes the element drop below any objects floating to the left and/or right (TOCs, infoboxes, images, etc.) that precede it in the page.
- Template clrl -- This template is a shorthand for
<div style="clear:left;"></div>
.
- clear:left makes the element drop below any objects floating to the left (TOCs, infoboxes, images, etc.) that precede it in the page.
- Template clrr -- This template is a shorthand for
<div style="clear:right;"></div>
.
- clear:right makes the element drop below any objects floating to the right (TOCs, infoboxes, images, etc.) that precede it in the page.
- You can use clear:left or clear:right to make it drop below only those elements that have been floated left or right.
+------------+ +--------------------+ | | | | | float:left | | without clear | | | | | | | +--------------------+ | | +--------------------+ | | | | | | | with clear:right | | | | (no effect here, | | | | as there is no | | | | float:right | | | | element) | | | | | | | +--------------------+ | | +------------+ +---------------------+ | | | with clear:left | | or clear:both | | | +---------------------+