Clearing Floats in CSS


Clear floats to prevent parent container collapse using the clearfix hack.

Source Code

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments