Thanks for that wuff1uk
I would really like it to be indented a couple of pixels if possible - and I stupidly forgot to mention there is also a second table but that needs to stay without the drop shadow.
Main Topics
Browse All TopicsI have created a 2 column table and want to add a drop shadow to it in light grey and down and to the right but I cannot figure out how to do it. Have posted the code below that I am using.
I am trying to learn how to do this without tables but for now would like to know how to do it with them. Have a very basic knowledge of css and html.
Not sure if it helps but I am using Dreamweaver CS3
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
For the second table, change the css to either a class (.table-shadow) and set those tables you want to be drop-shadowed to class="table-shadow" or set the css to an id (#table-shadow) and assign the id="table-shadow" to the table which should have the shadow (like below).
If you want an indented shadow, I'm afraid you'd have to use images as per the link in my previous post. Just replace the image references with a table or later div. The technique remains the same to be cross-browser compatible.
CSS:
.table-with-shadow {
border-bottom-style: solid;
border-bottom-width: 10px;
border-bottom-color: EEEEEE; /* lt gray*/
border-right-style: solid;
border-right-width: 10px;
border-right-color: EEEEEE; /* lt gray*/
}
HTML:
<html>
<-- This one table with shadow -->
<table class="tableWithShadow">
<tr><td>Content</t d></tr>
<tr><td>Content</td></t r>
<tr><td>Content</td></tr>
</table>
<!-- This one table without shadow (normal table) -->
<table>
<tr><td>Content</td></tr>
<tr><td>Content</ td></tr>
<tr><td>Content</td></ tr>
</table>
</h
<!-- Hope that helps :-) -->
Business Accounts
Answer for Membership
by: wuff1ukPosted on 2009-09-24 at 14:58:19ID: 25418422
To create a drop shadow with pure html/css, you can use something like the example below to 'fake' a drop shadow using the table borders (or div borders). If you're after a better drop shadow, you could take a look at this link using images: articles/c ssdropshad ows/
http://www.alistapart.com/
Select allOpen in new window