/ Published in: CSS

Clearfix with 2 different classes: page, section
Section: takes up a whole row (much like TR);
Page: is the container for each section
Section: takes up a whole row (much like TR);
Page: is the container for each section
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
.clearfix:after, .section:after, .page:after{content:"."; display:block; clear:both; visibility:hidden; line-height:0; height:0} .clearfix, .section, .page{display:inline-block} html[xmlns] .clearfix, html[xmlns] .section, html[xmlns] .page{display:block} * html .clearfix, * html .section, * html .page{height:1%} .section { width: 100% } .page { /* DEFINE WIDTH */
Comments
