1
I’ve seen some dev’s using so much display:block
how much table
in a after/before
, but why use ? I think I know why to use the block
but because the table
?
What’s the difference?
Another question is about this *Zoom: 1;
. Why use?
Code
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix {
*zoom: 1;
}
Article in English that can help you http://nicolasgallagher.com/micro-clearfix-hack/
– Diego Souza