Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can an element have box-shadow and inset shadow at the same time?

Tags:

css

I want to have both and outer shadow and an inner (inset) shadow on the same element, is this possible? Right now I have this:

box-shadow: 0 4px 2px -2px #888;
box-shadow: inset 0 0 30px #EEE;

with this the inset shadow overrides the normal box-shadow, any suggestions?

like image 501
Josh Mountain Avatar asked Aug 27 '12 13:08

Josh Mountain


1 Answers

Yes. Separate them with a comma:

box-shadow: inset 0 0 30px #EEE, 0 4px 2px -2px #888;

You can have up to six I believe.

like image 194
jett Avatar answered Sep 20 '22 22:09

jett