/ Published in: CSS
Add the class .clearfix to the parent element whose children are floated.
Expand |
Embed | Plain Text
.clearfix:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; } .clearfix { display: inline-block; } /* start commented backslash hack */ *html .clearfix { height: 1%; } .clearfix { display: block; } /* start close commented backslash hack */
You need to login to post a comment.
