Home › Forums › CSS › How to : Div box shadow with image › Re: How to : Div box shadow with image
September 4, 2011 at 4:53 am
#86314
Member
Hi i already searched somany times with google anyway thanks for your sugessions.
pls have a look at the image i posted above. i don’t need to make a shadow, i need background images to make shadows.
i just tryed the codes like this
body{
margin:30px auto;
padding:0;
color:#333;
background:#e8e8e8;
}
#box{
margin:0 auto;
padding:0;
background:#fff;
width:920px;
overflow: hidden;
position: relative;
}
#box-outer{
margin:0 auto;
padding:0;
background:transparent;
background-image: url(‘top-shadow.png’), url(‘bottom-shadow.png’);
background-repeat: no-repeat;
background-position: left top, right bottom;
width:940px;
position: relative;
}