Top "Clearfix" questions

A clearfix is a way for an element to automatically clear after itself, so that you don't need to add additional markup.

What is a clearfix?

Recently I was looking through some website's code, and saw that every <div> had a class clearfix. After …

html css layout cross-browser clearfix
What methods of ‘clearfix’ can I use?

I have the age-old problem of a div wrapping a two-column layout. My sidebar is floated, so my container div …

css clearfix
How do you keep parents of floated elements from collapsing?

Although elements like <div>s normally grow to fit their contents, using the float property can cause a …

html css layout css-float clearfix
What does the clearfix class do in css?

I've seen div tags use a clearfix class when it's child divs use the float property. The clearfix class looks …

html css clearfix
Understanding Bootstrap's clearfix class

.clearfix { *zoom: 1; &:before, &:after { display: table; content: ""; // Fixes Opera/contenteditable bug: // http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952 line-height: 0; } &:…

twitter-bootstrap less clearfix
Clearfix with twitter bootstrap

I have an issue with twitter bootstrap that looks a little bit strange to me. I have a sidebar with …

css twitter-bootstrap-3 clearfix
How do I make a newline after a twitter bootstrap element?

I apologize because this seems like such a simple thing. What's the correct way to insert a newline in a …

html twitter-bootstrap css-float html-lists clearfix
Issue with class clearfix in bootstrap

I am using twitter bootstrap, i have an issue with clearfix class in bootstrap. My html is : <div class="…

javascript css twitter-bootstrap clearfix
Why <div class="clear"></div> used?

I'll adapt my self to what 52framework.com offers. (HTML5, CSS3, JS framework) Despite watching grid tutorial video and inspecting …

html css grid-layout clearfix
Left Align Label - Right Align Select Element (CSS)

I have a form layout that I want to display the label aligned left and the form control aligned right. …

css forms select clearfix