Why would this div have an unnecessarily large computed height?
Posted
by Mike Crittenden
on Stack Overflow
See other posts from Stack Overflow
or by Mike Crittenden
Published on 2010-03-17T01:27:10Z
Indexed on
2010/03/17
1:31 UTC
Read the original article
Hit count: 370
Link: http://www.fraynepainting.com/services
The problem is that div#dditem_2 (the div with the "Take a look..." text) is getting a computed height of around 500px for no reason that I can find in the CSS, which is pushing the UL below it down really really far.
I discovered that if you set display: none
or position: absolute
(or anything else that removes it from the flow of elements) on the sidebar, then the bottom UL moves up like it should, so it looks like maybe the UL is trying to clear the sidebar, but I can't figure out why that would be either.
I've reproduced the problem in Firefox and Chrome so far. Any ideas?
© Stack Overflow or respective owner