Applying shadow along outer DIV

Hey, I have been doing some searching for tutorials on creating a side shadow effect on an outer layer out an element. I know that you would set it as the background-image and make it as long as the container element, but I am not sure how to position it. The articles/tutorials i found weren't that useful and were confusing.

Any thoughts to the best way to accomplishing this?

Thanks,

Ryan

Below is my CSS:
/* @group Reset Styles */
 
html,body,div,span,
applet,object,iframe,
h1,h2,h3,h4,h5,h6,p,blockquote,pre,
a,abbr,acronym,address,big,cite,code,
del,dfn,em,font,img,ins,kbd,q,s,samp,
small,strike,strong,sub,sup,tt,var,
dd,dl,dt,li,ol,ul,
fieldset,form,label,legend,
table,caption,tbody,tfoot,thead,tr,th,td {
	margin: 0;
	padding: 0;
	border: 0;
	font-weight: normal;
	font-style: normal;
	font-size: 100%;
	line-height: 1;
	font-family: inherit;
	text-align: left;
}
 
 
table {
	border-collapse: collapse;
	border-spacing: 0;
}
ol,ul {
	list-style: none;
}
q:before,q:after,
blockquote:before,blockquote:after {
	content: "";
}
a img,:link img,:visited img { border:none }
 
/* @end */
 
body{
	background:url(../images/background.jpg) repeat-x fixed;
	text-align:center;
	margin:25px 0 0 0;
}
#container{
	width:1024px;
	margin:0 auto;
	text-align:left;
	background:url(../images/back_shad.gif) repeat-y;
}

Open in new window

LVL 1
catonthecouchproductionsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dwaynecharringtonCommented:
Obviously the shadow image is not the same length. So you'll have to experiment  to get it to work right.
#wrapper {
 
	position: relative;
 
	margin-right: auto;
 
	margin-left: auto;
 
	text-align: left;
 
	width: 1024px;
 
	padding: 0 8px;
 
	background-image: url("../images/shadowBg.png");
 
	background-repeat: repeat-y;
 
	}

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
catonthecouchproductionsAuthor Commented:
Would this replace my #container? Or in addition too?
0
catonthecouchproductionsAuthor Commented:
Then I would set the width to be like 1067px, because that was the width of the shadow.
0
catonthecouchproductionsAuthor Commented:
Hey man...any thoughts? To above?

Thanks,

Ryan
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.