sitehatchery
12-09-2007, 01:03 AM
I found an interesting quirk in IE7. If you have a container that has the overflow set to auto or scroll and within that container you have list-items having relative-positioned elements, IE7 doesn't know what to do with it. Those elements positioned relatively do not abide to the overflow setting.
I originally created relative-positioned elements within the list tag so that I could control the positioning. As many know, if you set a list-item-image on the list item, Internet Explorer and Firefox place these images in different places. Controlling the positioning solves this. It worked fine when I didn't have a doctype. But as soon as I gave it a doctype, it broke in Internet Explorer.
I'm not quite sure how to express this very well, but you can see what I'm talking about here:
http://www.sitehatchery.com/articles/ie-list-item.php
I came up with somewhat of a fix - which is simply to control positioning with margins. But somehow that is very limiting. Has anybody ever run across this or know anything about it? I couldn't find anything on google, but I'd like to get this working correctly so that I can control the relative positioning of the item.
I originally created relative-positioned elements within the list tag so that I could control the positioning. As many know, if you set a list-item-image on the list item, Internet Explorer and Firefox place these images in different places. Controlling the positioning solves this. It worked fine when I didn't have a doctype. But as soon as I gave it a doctype, it broke in Internet Explorer.
I'm not quite sure how to express this very well, but you can see what I'm talking about here:
http://www.sitehatchery.com/articles/ie-list-item.php
I came up with somewhat of a fix - which is simply to control positioning with margins. But somehow that is very limiting. Has anybody ever run across this or know anything about it? I couldn't find anything on google, but I'd like to get this working correctly so that I can control the relative positioning of the item.