Abr Mid
Abr Mid

Reputation: 49

How do you add a shadow underneath a header that is gray and blurry in CSS?

I wanted to find out how to make a shadow underneath my header that is both gray and blurry. I have read a W3 Schools article about this but I want it to only be below my header and horizontal while making it blurry and gray.

#header {
  /*In This Line- CSS for Box Shadow*/
  position:fixed
  }
<header id="header">
My Header
<!-- Shadow -->
</header>

Upvotes: 1

Views: 7281

Answers (2)

Bodda
Bodda

Reputation: 65

#header {
  /In This Line- CSS for Box Shadow/
  position:fixed;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08), 0 2px 4px 0 rgba(0, 0, 0, 0.12);
  }
<header id="header">
My Header
<!-- Shadow -->
</header>

Upvotes: 2

Brayden W
Brayden W

Reputation: 128

Try this:

box-shadow: 0px 20px 40px 10px #aaa;

Upvotes: 1

Related Questions