Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

html

css

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

Just using CSS, how do I do that?

like image 504
marcamillion Avatar asked Sep 27 '10 17:09

marcamillion


2 Answers

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

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

like image 149
Peter Kruithof Avatar answered Sep 29 '22 11:09

Peter Kruithof


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

like image 41
skazhy Avatar answered Sep 29 '22 12:09

skazhy