Forum Moderators: not2easy
Sounds like you must be using CSS. Why not post a short snippet of your CSS layout over in our CSS Forum an let the brain trust over there have a look?
#divContainer{
position:absolute;
width:115px;
height:82px;
overflow:hidden;
top:162px;
left:596px;
clip:rect(0,115,100,0);
visibility:hidden;
background-color: #FFFFFF;
}
#divContent{position:absolute; top:153px; left:0px}
Should I have the divcontainer inside another container that will have the size of the page I want?
Your top: and left: rules measure from the top and left of the containing element. In some cases, that may be the <body>. In other cases, the div is contained in another div. So if the container block is shifted on a different size screen, then the div nested inside it would also shift.
Also remember, you can position things with percentages as well as pixels and other exact units. So left:50% relative to the <body> would indicate the middle of the window.
Does any of that help you figure things out?
You probably should dig into these related concepts:
Margins and Padding
[webmasterworld.com...]
DTD, Quirks mode and Standards Mode
[webmasterworld.com...]
The "Box Model" and Browsers
[webmasterworld.com...]
[webmasterworld.com...]
[webmasterworld.com...]
I tried a few doc types, but then the layer clipping doesn't work.
I am also not using any padding or margin on the style. Is that the problem?
Here is the code
<div id="Layer1" style="position:absolute; width:115px; height:96px; z-index:1; overflow: visible; left: 540px; top: 159px;">
<div id="divContainer" style="position:absolute; width:115px; height:82px; overflow:hidden left: 0px; top: 0px; clip:rect(0,100,85,0);">
<div id="divContent" style="position:absolute; left: 0px; top: 0px;">
How can make it work in the same location for NE and IE?
Thanks