On Fri, Dec 17, 2010 at 9:39 AM, sweepslate <sweepsl...@gmail.com> wrote:

> I have two floats, one next to the other, content and side. There is a third
> box under them, the footer. I'd like the footer to have some margin-top, but
> I can't manage that, even with clear:both.
> ....

Per the spec:
"Then the amount of clearance is set to the greater of:

   1. The amount necessary to place the border edge of the block even
with the bottom outer edge of the lowest float that is to be cleared.
   2. The amount necessary to place the top border edge of the block
at its hypothetical position. "
http://www.w3.org/TR/CSS2/visuren.html#flow-control

So, if you put clear:both on your footer it will be pushed down just
far enough to clear the floats; and thus no 'extra' margin.

To get the space you want, try adding margin-bottom: 10px to your content.

Tim
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to