CSS - Clear Property

About

The wiki/CSS/Properties/clear property indicates which sides of an element's box(es) may not be adjacent to an earlier floating box.

Example

h1, h2, h3, h4, h5, h6 {
    clear: left; /* All header may not be adjacent to a left floating box */
}

Clearfix

A clearfix is generally used in float layouts to constrained the floated element to stay in its container. See float layout





Discover More
CSS - Float (box|property) (Layout)

CSS Float is a property of a block box. It shifts a box to the left or right on the current line and create a new position context. flexbox The most interesting characteristic of a float (or “floated”...
Float Layout - Clearfix

A clearfix is a method used in float layouts to constrained the floated element to stay in its container. The first usage of float was to let float an image (left or right) in a text that contains...
Firebug Layout
HTML - Layout

layout float with div table html5



Share this page:
Follow us:
Task Runner