marcamillion
marcamillion

Reputation: 33755

How do I add a shadow to an entire table using just CSS?

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

Just using CSS, how do I do that?

Upvotes: 7

Views: 63099

Answers (2)

skazhy
skazhy

Reputation: 4651

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

Upvotes: 2

Peter Kruithof
Peter Kruithof

Reputation: 10764

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

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

Upvotes: 14

Related Questions