Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to : Div box shadow with image Re: How to : Div box shadow with image

#86314
tnguru
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;
}