G
Guest
Given the following html:
<HTML>
<BODY>
<DIV style="POSITION: absolute; TOP: 0px; LEFT: 0px; WIDTH: 9px;
HEIGHT: 9px; BACKGROUND-COLOR: red"></DIV>
<DIV style="POSITION: absolute; TOP: 10px; LEFT: 10px; WIDTH: 9px;
HEIGHT: 9px; BACKGROUND-COLOR: blue"></DIV>
<DIV style="POSITION: absolute; TOP: 20px; LEFT: 20px; WIDTH: 9px;
HEIGHT: 9px; BACKGROUND-COLOR: green"></DIV>
<DIV style="POSITION: absolute; TOP: 30px; LEFT: 30px; WIDTH: 9px;
HEIGHT: 9px; BACKGROUND-COLOR: purple"></DIV>
<DIV style="POSITION: absolute; TOP: 40px; LEFT: 40px; WIDTH: 9px;
HEIGHT: 9px; BACKGROUND-COLOR: yellow"></DIV>
<DIV style="POSITION: absolute; TOP: 50px; LEFT: 50px; WIDTH: 9px;
HEIGHT: 9px; BACKGROUND-COLOR: orange"></DIV>
<DIV style="POSITION: absolute; TOP: 60px; LEFT: 60px; WIDTH: 9px;
HEIGHT: 9px; BACKGROUND-COLOR: black"></DIV>
</BODY>
</HTML>
You would think you would see a page with squares of equal height and
width, positioned in a stair type pattern like this:
_____
| |
| |
|_____|_____
| |
| |
|_____|_____
| |
| |
|_____|
but instead you see something like this:
_____
| |
| |
| |_____
| | |
|_____| |
| |_____
| | |
|_____| |
| |
| |
|_____|
(forgive the rudimentary shapes, hopefully text wrap won't affect it
horribly)
It seems like in my version of IE 6 (6.0.3790.0, Update Versions:
3283), setting a div to equal height and width, causes the div to
"stretch" height-wise. Left positioning seems to behave normally, in
that, a div set with a left position of 0px, and a width of 9px, is
not overlapped with a div to the right of it with a positioning of
left: 10px. This does not seem to be the case with the height and top
positioning.
I have not been able to view this in any other browser versions, so I
am not sure if it is a browser specific problem.
Am I missing something else? I also tried setting the margins and
padding of the body to zero to see if that was causing the behavior,
but it was still the same result.
Any help would be appreciated, and at very least give me some peace of
mind.
If I need to elaborate this problem further, please let me know.
Thanks,
Jonathan
<HTML>
<BODY>
<DIV style="POSITION: absolute; TOP: 0px; LEFT: 0px; WIDTH: 9px;
HEIGHT: 9px; BACKGROUND-COLOR: red"></DIV>
<DIV style="POSITION: absolute; TOP: 10px; LEFT: 10px; WIDTH: 9px;
HEIGHT: 9px; BACKGROUND-COLOR: blue"></DIV>
<DIV style="POSITION: absolute; TOP: 20px; LEFT: 20px; WIDTH: 9px;
HEIGHT: 9px; BACKGROUND-COLOR: green"></DIV>
<DIV style="POSITION: absolute; TOP: 30px; LEFT: 30px; WIDTH: 9px;
HEIGHT: 9px; BACKGROUND-COLOR: purple"></DIV>
<DIV style="POSITION: absolute; TOP: 40px; LEFT: 40px; WIDTH: 9px;
HEIGHT: 9px; BACKGROUND-COLOR: yellow"></DIV>
<DIV style="POSITION: absolute; TOP: 50px; LEFT: 50px; WIDTH: 9px;
HEIGHT: 9px; BACKGROUND-COLOR: orange"></DIV>
<DIV style="POSITION: absolute; TOP: 60px; LEFT: 60px; WIDTH: 9px;
HEIGHT: 9px; BACKGROUND-COLOR: black"></DIV>
</BODY>
</HTML>
You would think you would see a page with squares of equal height and
width, positioned in a stair type pattern like this:
_____
| |
| |
|_____|_____
| |
| |
|_____|_____
| |
| |
|_____|
but instead you see something like this:
_____
| |
| |
| |_____
| | |
|_____| |
| |_____
| | |
|_____| |
| |
| |
|_____|
(forgive the rudimentary shapes, hopefully text wrap won't affect it
horribly)
It seems like in my version of IE 6 (6.0.3790.0, Update Versions:
3283), setting a div to equal height and width, causes the div to
"stretch" height-wise. Left positioning seems to behave normally, in
that, a div set with a left position of 0px, and a width of 9px, is
not overlapped with a div to the right of it with a positioning of
left: 10px. This does not seem to be the case with the height and top
positioning.
I have not been able to view this in any other browser versions, so I
am not sure if it is a browser specific problem.
Am I missing something else? I also tried setting the margins and
padding of the body to zero to see if that was causing the behavior,
but it was still the same result.
Any help would be appreciated, and at very least give me some peace of
mind.
If I need to elaborate this problem further, please let me know.
Thanks,
Jonathan