# Shadow effect below nav bar

**URL:** <https://community.hubspot.com/t/shadow-effect-below-nav-bar/13173>\
**Category:** CMS Development\
**Tags:** css\
**Created:** [February 22, 2019, 2:25pm UTC](https://community.hubspot.com/t/shadow-effect-below-nav-bar/13173 "2019-02-22T14:25:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbeard42](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bbeard42/32/99949_2.png) [@bbeard42](https://community.hubspot.com/u/bbeard42)\
**Post date:** [February 22, 2019, 2:25pm UTC](https://community.hubspot.com/t/shadow-effect-below-nav-bar/13173/1 "2019-02-22T14:25:48Z")

</div>

Hi there, I would like to create a shadow box effect that will appear somewhat as a rule below the nav bar, so it appears to pop off the page. Right now it’s an all white background and I’d like to add something to it. Any ideas how to do this?

[https://www.tandemfinance.com/](https://www.tandemfinance.com/)

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [February 22, 2019, 9:55pm UTC](https://community.hubspot.com/t/shadow-effect-below-nav-bar/13173/2 "2019-02-22T21:55:18Z")

</div>

Hi @bbeard42,

sure, here’s a [shadow-generator](https://www.cssmatic.com/box-shadow). Simply change the values to the desired result, copy the sourcecode and add it to the “navbar”(or whatever your header class is) class in your main css file.

it should look like this:

```auto
.navbar{
- SOME STYLING -;
-webkit-box-shadow: 0px 14px 12px 0px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 14px 12px 0px rgba(0,0,0,0.75);
box-shadow: 0px 14px 12px 0px rgba(0,0,0,0.75);
}

```

(this are just some random numbers/values).

If there is no navbar class - simply add it at the very bottom of your CSS.

```auto
.navbar{
-webkit-box-shadow: 0px 14px 12px 0px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 14px 12px 0px rgba(0,0,0,0.75);
box-shadow: 0px 14px 12px 0px rgba(0,0,0,0.75);
}

```

You should also consider to:

- create a completly new class like “header-shadow”(feel free to change the naming)

- add it at the very bottom of your main css file

- add the class to the header-group

regards

Anton

|

 ![check.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/c/0cb6398cd51b552c2b96a36cf031f5e476e2c9bc.png)  
| Did my post help answer your query? Help the Community by **marking it as a solution** |  
| — | — |

---

<div class="post-metadata">

**Author:** ![jzilch](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jzilch/32/2867_2.png) [@jzilch](https://community.hubspot.com/u/jzilch)\
**Post date:** [February 25, 2019, 5:57pm UTC](https://community.hubspot.com/t/shadow-effect-below-nav-bar/13173/3 "2019-02-25T17:57:26Z")

</div>

The shadow generator is a great tool to help and generate shadows with a nice UI to see exactly how this will show on the page. Great solution here @Anton .

Let us know if you still need help.
