Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS What is the best way of clearing floats in css? Re: What is the best way of clearing floats in css?

#122857
magnus_vb
Member

I have this in my stylesheet:

.group:after {
content: “”;
display: table;
clear: both;
visibility: hidden;
}

Then I just add the class “group” the the element to have it clear (don’t use Compass).

Just my 2 cents.
Magnus