Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS3 Box-Shadow Showing Behind Sibling Div Element [duplicate]

Tags:

I'm using:

box-shadow: 0px -1px 0px #333333; 

on my footer but it's hiding behind or disappearing where the div before it is... hard to explain but here's what it looks like: http://cl.ly/7HLy

Is there a way do have the box-shadow be on top of the other div before the footer? I've tried adding a z-index but it doesn't work.

like image 692
Marc Avatar asked Jun 02 '11 12:06

Marc


1 Answers

I'll repeat my comment here since it solved the problem.

When using z-index you should use position: relative;

like image 54
wdm Avatar answered Sep 22 '22 22:09

wdm