tags:

views:

45

answers:

3

I would like to add a subtle shadow to make my table look raised.

Just using CSS, how do I do that?

+3  A: 

table { box-shadow: 1px 1px 1px #999; }

More box-shadow examples here: http://www.css3.info/preview/box-shadow/

Peter Kruithof
What actually worked was -moz-box-shadow: 1px 1px 1px #999;
marcamillion
Right, what I didn't mention was that you have to include vendor-prefixes to make it work in some browsers. The `-moz-` prefix is for Firefox, for Chrome/Safari you can use `-webkit-` and for Konqueror `-khtml-`
Peter Kruithof
A: 

perhaps this: http://webdesign.about.com/od/csstutorials/a/aa102306.htm

Ehsan
+1  A: 

CSS3 has the box-shadow declaration. Check this article for more information.

skazhy