Position: Absolute Non-Own Parent in IE6

I have a page with divin it.

divcontains an image, has a width of 700 pixels and a height of 300 pixels. It is set to position: relative.

To show some text at the bottom of the DIV, I put in it spanand give itposition: absolute; bottom: 8px

This works great in all browsers except IE6. IE6 places text at the very bottom of the page.

It is as if the parent element position: relativedid not exist with it .

Is this a known behavior of IE6, or am I missing something?

I just checked, the HTML code passes the W3C check.

+3
source share
2 answers

div? , IE6 .

+2

,

height:auto!important;
height:1px;

, IE6, !important..

+2

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


All Articles