views:

275

answers:

2

I have given a div height of 150px. The height is not shown in IE8 compatibility view. Please find the URL of the page below. The css class name is MenuList.
Test

A: 

The div is being shown with the correct height, however the bottom half is not visible because other divs have been positioned over it.

You can verify this by using the F12 tool in IE and clicking it.

Perhaps you can change the z-order to bring it forward. I would still consider rewriting it to use less divs though.

SLC
I have tried z-order but no change.
Shivanand
A: 

It's got to do with the position:absolute;.
Try using F12 and inspect that div, and turn off the position: absolute; style - you'll see the parent expand.

ANeves
This would make you think setting the z-order to 9999 would fix it.
SLC
Tried it but didn't work.
Shivanand
I make no claim that z-index might solve anything. Are you saying that you tried disabling the style using F12 (Developer Tools) and it didn't stop hiding the div's bottom part?
ANeves
Your .total div has fixed width: why not taking the position: absolute from the child, and make it have left-margin instead?
ANeves
Tried giving left margin and removing absolute position. The div is showing the height but not displaying over the below divs. Instead it is pushing them below it.
Shivanand
Yes, it does. I thought that was what you wished to do - my bad, I **completely** misunderstood. Sorry, I don't know how to help you. It's just there, but under the rest. At least you have a pointer to why it's being hidden. =|
ANeves