The best replacement for clearfix is overflow auto.

The best alternatives to clearfix are rated as following:
★★★★★  overflow auto
★★★★★  overflow hidden

Your alternative for clearfix is not listed? Suggest!

No companions for clearfix have been suggested so far.
You have in mind a companion for clearfix and it is not yet here? Propose!

Google Trends

Scale is based on the average worldwide traffic of clearfix in all years. Click on graph for more.
overflow auto
overflow hidden