Re: .clearfix

On Mon, Oct 21, 2013 at 2:09 AM, Bruno Racineux <bruno@hexanet.net> wrote:
> We are using either a floated block, an inline-block or a non-floated
> block with a clearfix hack, often mainly in order to simply have blocks
> vertically stacked (e.g. header, nav, main, footer) without any unwanted
> "freaking" spacing issues or background holes. You'd think one could very
> simple things like that by now with no hacks.

You can, with Flexbox.  Actual float clearing is needed very rarely
when using floats for their intended purpose of floating some figure
next to some text.  It's just the hacky method of using floats for
layout that needs it so often.

~TJ

Received on Monday, 21 October 2013 13:05:10 UTC