Click to See Complete Forum and Search --> : Quirks Mode & Absolute Positioning


robmarston
09-17-2008, 03:28 PM
I am creating a 'profile' on a social networking site that allows me a good amount of customization. I'm positioning a DIV absolutely, unfortunately it does not show up at all in IE7.

I've narrowed the bug down to the fact that there is no doctype declared which forces the document into Quirks mode and therefore messes everything up. Add a doctype in my local test file, and everything's fine.

Here's the dilemma, I only have access to the <body> section of the page, so injecting a doctype although a seemingly perfect solution, doesn't do a dang thing.

Any ideas?

Fang
09-18-2008, 02:01 AM
Does the div have a high z-index?

robmarston
09-18-2008, 01:22 PM
I tried various z-indexes.

Someone suggested I specify "position:relative" for the container DIV. That made the DIV visible, but positioned it to 0,0 of the parent and not the page itself, arggghh.

It's wierd to me that the DIV isn't showing up at all in IE -- I'd imagine it's an overflow or margin issue that's throwing it off the page...

I created a work-around based on the page's content, but I'd still like to find a solution.

Thanks!

Fang
09-18-2008, 05:43 PM
Set the z-index to 1000, should then be visible. Other wise code the code.