IE6 and 7 absolute positioning error

After testing a small site that I built for my school in Firefox, SeaMonkey, Chrome, Opera, Safari, Camino, and IE8, I found that my site for absolutely positioned divs was pretty nice.

However, when I started testing the site in IE6 and 7, all divs were inappropriate and messy on the page.

I spent two weeks at Google and tried to figure out what the problem was, however I still cannot find a consistent way to solve this problem.

Hope I was clear enough, sorry if my English is not very good, this is my third language.

If you need more clarification, please feel free to ask.

Any help is appreciated.

Thank you for your time.

Note. As mentioned above, I know that there are many solutions and similar issues, but I could not find one that works in this situation.

UPDATE: the scaling property fixed most of the problems that I had, hasLayout seems like a big pain. Thanks Spudly and Patrik

+3
source share
2 answers

This sounds like the classic "HasLayout" error, which is one of the reasons in the life of every web developer who needs to support older versions of IE.

HasLayout , IE , , . , , , , .

, , , HasLayout. , IE ; , .

, , ,

.myelelement {
    zoom:1;
}

, -, , zoom , IE, , -, zoom:1; , . , - , HasLayout , , .

, .

+5

IE, ... : . , , , .

+2

Source: https://habr.com/ru/post/1789413/


All Articles