DIV's and z-indexing in IE.

Permabanned
OP
Joined
21 Apr 2004
Posts
13,312
Location
Wolverhampton
:confused: My IE doesn't show it.

Also absolute positioning makes it static in the browser, does relative positioning or fixed or whatever stop this. E.g. at 1024x768 the DIV is in a different position to 1600x1200

Firefox:

ff.gif


IE:

ie.gif
 
Last edited:
Permabanned
OP
Joined
21 Apr 2004
Posts
13,312
Location
Wolverhampton
Mr_L said:
With the margin for the container at auto for both left and right it should automatically stick in the middle. As long as the body margin and padding are set to 0.

EDIT: When I click your links I get a 404.

:confused: The container DIV is fine, its the overlaying DIV that isn't displaying correctly. Especially in IE, where its not even displaying :(

The HTML:

Code:
  <div id="NewsContent">
    <h1>Header Test</h1>
    <h2>Sub header test</h2>
    <p>Text test</p>
  </div>

The CSS

Code:
DIV#NewsContent {
    z-index: 3;
    width: 637px;
    height: 312px;
    border: 12px #FFFFFF solid;
    background-color: #E0E0E0;
    position: absolute;
    left: 544px;
    bottom: 660px;    
}

Check the pics above to see the problem.

Just to repeat, the DIV displays in the correct place in Firefox at 1600x1200, but not in any other resolution.

And in IE is doesn't even display.

I can see why IE gets slated now, no support for z-indexing? I don't know :(
 
Back
Top Bottom