CSS3 Clearfix hack

css3

Quickly and Easily fix and Clear floated content within a container or any element. Its also fix the correct order within container to provide clear visibility of your web pages.
It can be used for whole pages to provide style elements alignment.

HTML code for our example :

CSS Script for above <div> element:

clearfix should be used with sudo elements like ::after

The above code will fix the clear container within our div element

Leave a Comment

Your email address will not be published. Required fields are marked *