jlizarraga
03-03-2009, 04:57 PM
Hi all,
I have a div with a bg image providing rounded top corners. There is an absolutely positioned (bottom:0) "footer" div within this div, providing the bottom rounded corners.
If I resize the text, all browsers including IE6 keep the footer at bottom:0 while the containing div grows and shrinks.
However, if I use JS to append elements to the containing div, IE6 doesn't recognize the height change (or something) and the footer is no longer at bottom:0; Changing the font-size magically causes it to appear at the bottom again.
What JS can I send to IE6 that will get it to recognize that the positioning needs to be refreshed as changing the font-size does?
Thanks!
EDIT: Well I just worked around it. Here was the old markup:
<div> <- Position relative, padding-bottom to match footer height.
<p>Content content content.</p>
<div class="footer"></div> <- Position absolute, bottom/left/right all 0.
</div>
If I added another <p> via script to the markup above, footer would no longer be at 0 in IE6 until I manually resized the browser's font-size.
New markup:
<div>
<div class="body">
<p>Content content content.</p>
</div>
<div class="footer"></div>
</div>
This way there's no absolute positioning for IE6 to choke on.
I have a div with a bg image providing rounded top corners. There is an absolutely positioned (bottom:0) "footer" div within this div, providing the bottom rounded corners.
If I resize the text, all browsers including IE6 keep the footer at bottom:0 while the containing div grows and shrinks.
However, if I use JS to append elements to the containing div, IE6 doesn't recognize the height change (or something) and the footer is no longer at bottom:0; Changing the font-size magically causes it to appear at the bottom again.
What JS can I send to IE6 that will get it to recognize that the positioning needs to be refreshed as changing the font-size does?
Thanks!
EDIT: Well I just worked around it. Here was the old markup:
<div> <- Position relative, padding-bottom to match footer height.
<p>Content content content.</p>
<div class="footer"></div> <- Position absolute, bottom/left/right all 0.
</div>
If I added another <p> via script to the markup above, footer would no longer be at 0 in IE6 until I manually resized the browser's font-size.
New markup:
<div>
<div class="body">
<p>Content content content.</p>
</div>
<div class="footer"></div>
</div>
This way there's no absolute positioning for IE6 to choke on.