CSS Box Shadow Bottom Only

WillingLearner picture WillingLearner · Dec 30, 2010 · Viewed 634.4k times · Source

How can I do this? I want my element to look as though it has a shadow underline. I don't want the shadow for the other 3 sides.

Answer

Steve B picture Steve B · Jun 5, 2011

Do this:

box-shadow: 0 4px 2px -2px gray;

It's actually much simpler, whatever you set the blur to (3rd value), set the spread (4th value) to the negative of it.