Easily clear floats by adding .clearfix to the parent element.
The following example shows how the clearfix can be used. Without the clearfix, the wrapping div would not span the buttons, which would cause a broken layout.
Easily clear floats by adding .clearfix to the parent element.
The following example shows how the clearfix can be used. Without the clearfix, the wrapping div would not span the buttons, which would cause a broken layout.