Documentation for Template : clear

Template : clear

Usage and Example

Call this template in any topic like the examples below.

{{clear}} // Clears both left and right floating elements
{{clear|both}} // Clears both left and right floating elements
{{clear|left}} // Clears left floating elements only
{{clear|right}} // Clears right floating elements only

Discussion

This is arcane, probably TMI for most folks, but web markup (HTML) often relies on floating elements for layout.

Left-floating elements are on the left and subsequent markup is wrapped adjacent to the right.

Right-floating elements are pushed to the very right and subsequent markup is wrapped adjacent to the left.