467,114 Members | 1,220 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,114 developers. It's quick & easy.

position: absolute in IE6

Hi,

I found that when I have such code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head></head><body>
<div id="spacer">
this<br>is<br>some<br>long<br>text<br>feel<br>free <br>to<br>add<br>or<br>remove<br>lines
</div>
<div id="outer" style="position: relative;">
<div id="inner" style="position: absolute; bottom: 0px;">
<img src="button.gif" />
</div>
</div>
</body></html>

IE6 will draw the button too far down, in fact as much too far as
#spacer is high! Where is the connection? What is the logic behind
this?

Regards,
André
Mar 11 '08 #1
  • viewed: 2850
Share:
1 Reply
On 11 Mrz., 05:45, André Hänsel <an...@webkr.dewrote:
Hi,

I found that when I have such code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www..w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head></head><body>
<div id="spacer">
this<br>is<br>some<br>long<br>text<br>feel<br>free <br>to<br>add<br>or<br>remove<br>lines
</div>
<div id="outer" style="position: relative;">
<div id="inner" style="position: absolute; bottom: 0px;">
<img src="button.gif" />
</div>
</div>
</body></html>

IE6 will draw the button too far down, in fact as much too far as
#spacer is high! Where is the connection? What is the logic behind
this?

Regards,
André
At least I also found out that I can get correct behaviour when I set
"height: 100%;" for #outer. Conform browsers should ignore it since
100% of auto is auto, right?
Mar 11 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Peter Fjelsten | last post: by
1 post views Thread by J. Potts | last post: by
5 posts views Thread by CMAR | last post: by
1 post views Thread by dale zhang | last post: by
3 posts views Thread by moondaddy | last post: by
19 posts views Thread by wmanzo@yahoo.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.