Grow your CSS skills. Land your dream job.

Universal overflow: auto;

Published by Chris Coyier

Greg Smith isn't advocating we start just slapping on * { overflow: auto; } into all our existing projects. But if we start a project with this, there are a number of advantages, like not needing to use a clearfix or worrying about collapsing margins. Of course sometimes you want a different overflow behavior, but you can just set it like you would anyway.

See the comments about inheriting the value rather than setting it.

Sometimes these things catch on, just look at box-sizing. And sometimes they don't.

Direct Link →

*May or may not contain any actual "CSS" or "Tricks".