26

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.

L84
  • 45,514
  • 58
  • 177
  • 257
Marc
  • 2,584
  • 5
  • 33
  • 47

1 Answers1

65

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

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

wdm
  • 7,121
  • 1
  • 27
  • 29