CSS Library: DIVs and containers: Here
CSS Drop Shadows
Author: Dynamic Drive
This examples shows how to add a drop shadow to any container element using only CSS (no images). It does this by wrapping the desired content in a DIV with its background color set to the desired shadow color. The content itself is relatively positioned and shifted slightly upwards and to the left to expose the shadow. A "master" DIV that surrounds the entire markup is also relatively positioned, but shifted to the right and downwards to return the entire markup to its original position on the page. The result is a rather rigid- but instant- shadow.
IE 6 has difficultly handling nested relatively positioned elements (yada), so instead of letting IE6 ruin the fun for everyone else, we'll just use conditional HTML to hide the effect in that browser. IE7 is spared for finally learning proper CSS.
Note: If you're applying the shadow to an image, like in the second example below, you should give ".shadowcontainer" an explicit height reflecting that of the image's.
Demo:
Some text here. Some text here.
Some text here. Some text here.
Some text here. Some text here.
Some text here. Some text here.
The CSS:
Got a question or need help customizing this CSS code? Post it in the CSS Forums. If you have a comment or suggestion instead, post it in the comments section below.
Comment Pages 3 of 4 pages < 1 2 3 4 >
-Great script
i found that putting a space in the trailing ENDIF code to make it END IF fixed the problem
Here's my code...HTML:
<body >
<div class="center">
<div class="shiftcontainer">
<div class="shadowcontainer">
<div class="innerdiv">
<div id="wrap">
CSS:
#wrap {
width:800px;
text-align:left;
margin:0 auto;
background-color:white;
}
And yes Im a newbie need all the help I can get. Any ideas. Thanks in advance.
http://theclickdepot.com
Anyway, nice effect :)

