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

Home Forums CSS Floated boxes creating gaps Re: Floated boxes creating gaps


Add this after the last box in the row:

with CSS code:

.class	{
clear: both;

That should clear the floats, otherwise the last box will indeed jump down one line or so.. I don’t really know why, but it helps.

Edit: Read through this, it might have some important info about the floats and clearing floats, probably better the way I explained it. Actually, after quickly looking at that article, I’m not sure my solution is correct :P