Reputation: 49
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
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