Category: Web Development

The end of the clearfix hack. Could it be?

The end of the clearfix hack. Could it be?

The clearfix hack is a method for an element to automatically clear its child elements. Generally it’s used in float layouts where elements are floated to be stacked horizontally. But, might it soon be a thing of the past? Goodbye clearfix hack. Say hello to the flow-root display property. Rachel Andrew’s blog has a […]