I've seen some dev's using both display:block
and table
in after/before
, but why use? I think I know why I use block
but because 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;
}