No replies
microskies
microskies's picture
Offline
newbie
Last seen: 2 years 31 weeks ago
Joined: 2011-07-15
Posts: 6
Points: 11

Hey, I'm getting a slight problem where my background shadow is on tpo of and in front of another div, even though the z-index of the div with the shadow is lower.

Here is the picture of the problem:
http://dl.dropbox.com/u/38438228/Overlap.png

As you can see the shadow is above the background image of the top dive, which is not what I want, and what i want is this:
http://dl.dropbox.com/u/38438228/No%20overlap.png

Heres the css:

For the white column:

#col{
	background-color: #F2F2F2;
	width: 1060px;
	padding: 10px;
	padding-top:5px;
	z-index: 1;
	-moz-box-shadow: -2px -20px 20px #444444, 2px 20px 20px #444444, -2px 20px 20px #444444, 2px -20px 20px #444444;
	-webkit-box-shadow: -2px -20px 20px #444444, 2px 20px 20px #444444, -2px 20px 20px #444444, 2px -20px 20px #444444;
	box-shadow: -2px -20px 20px #444444, 2px 20px 20px #444444, -2px 20px 20px #444444, 2px -20px 20px #444444;
	margin-left: auto;
	margin-right: auto;
}

For the Banner:

#banner-container{
	width:100%;
	z-index:10;
	text-align:center;
	background: #81acff url('/home/images/head_bg.png') repeat-x left top;
	height: 160px;
}