Is there a more simplified way to use .clearfix
?
old:
.clearfix:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
My new clear fix:
.coreys-clearfix:after {
content: "";
display: block;
clear: both;
}
I put this through a validator and I had no errors. Does anyone else know of or see any reason why this can not be used? it only saves 3 lines of code and a .
, but still.