2 ms·
And now we have display of "flow-root" instead of clearfix. However the only reason I ever used the clearfix hack was when using float to do layout. I haven’t
by runarberg 5y ago
And now we have display of "flow-root" instead of clearfix.
However the only reason I ever used the clearfix hack was when using float to do layout. I haven’t done that for ages (i.e. since CSS grew to include flexbox and grid). And I only ever use float to—well—float images inside text where the inside display is always inline. So I haven’t ever seen a need for display flow-root in the wild... Although I’m sure it exists.