How to add shadow to the whole table using only CSS?

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

Just using CSS, how do I do this?

+5
source share
3 answers

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

The following are examples with short shadow expressions: http://www.css3.info/preview/box-shadow/

+10
source

CSS3 has a box-shadow declaration. To learn more, see this article .

+2
source

All Articles