What a mistake: 1; fix in CSS?

I have seen people apply CSS zoom: 1; for HTML elements.

Why are they doing this, and what error is being fixed?

+36
css internet-explorer internet-explorer-7 internet-explorer-6
Jun 09 2018-11-11T00:
source share
1 answer

This provides an internal property known as hasLayout in Internet Explorer version 7 and below.

The final article on this topic is here: http://www.satzansatz.de/cssd/onhavinglayout.html

A lot of the rendering of Internet Explorer inconsistencies can be resolved by providing a layout element. In this article, the authors focus on some aspects of this complex issue.

β€œLayout” is a proprietary IE / Win concept that defines how elements draw and link their contents, interact with and are connected to other elements, and respond and transmit application / user events.




For an example of a specific error, which zoom: 1 (and therefore hasLayout ) helps to fix:

The built-in block does not work in Internet Explorer 7, 6

+45
Jun 09 2018-11-11T00:
source share



All Articles