Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Foundations The Box Model Floats

What is the property " *zoom = 1; " ?

?

2 Answers

Chris Shaw
Chris Shaw
26,676 Points

Hi Hoppy,

A while ago when IE7 was still a browser we needed to support mainly for corporate clients (and a browser I still have to build for at work), it caused a list of list one of which is the somewhat known hasLayout bug that plagued our good code and turned it into an horrible mess in the screen.

One hack a smarter developer came up with was to use zoom which magically redraws the element while containing floats that otherwise broke out layouts.

Now days unless you're supporting IE7 you need not worry about this as the modern day clearfix works without issue in IE8+.

Hope that helps.