Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Higher z-index appearing below lower z-index

Tags:

html

css

z-index

What would make a html element e.g. an ul aboslutely positioned with a zindex of say 5000 to appear below a div of a lower zindex say 0? This behaviour is seen in IE8.

like image 281
Waliaula Makokha Avatar asked Oct 14 '10 18:10

Waliaula Makokha


1 Answers

Just because it has a higher z-index doesn't mean it'll be on top. You have to take into account the parent's stacking level and this becomes the stacking context. Try giving a non-static position ( relative ) to the parent of the 5000.

If that doesn't work, post the relevant HTML.

like image 58
meder omuraliev Avatar answered Nov 05 '22 20:11

meder omuraliev