Search code examples
cssunderlinebox-shadow

CSS Box Shadow Bottom Only


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.


Solution

  • 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.