"CSS clearfix" is often needed to clear floats.
- Examples 1-3 clear floats by applying a CSS class to a p tag. The p tag holds a "non-breaking space" - ascii code for space is " "
- Examples 4 and 5 clear floats by applying the CSS clearfix class in a different manner. The clearfix is applied to a div tag that contains the floated items.
The post CSS Clearfix appeared first on Surfing Success.