# Navigation Help

**URL:** <https://community.hubspot.com/t/navigation-help/10067>\
**Category:** CMS Development\
**Created:** [September 4, 2018, 4:59pm UTC](https://community.hubspot.com/t/navigation-help/10067 "2018-09-04T16:59:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kmunno](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kmunno/32/32521_2.png) [@Kmunno](https://community.hubspot.com/u/Kmunno)\
**Post date:** [September 4, 2018, 4:59pm UTC](https://community.hubspot.com/t/navigation-help/10067/1 "2018-09-04T16:59:52Z")

</div>

Not a designer and not much HTML experience but have been tasked with building a website. I’m having some trouble with our navigation, so this is a multi-part question:

1. Is there a way to create a sticky nav so it doesn’t move?

2. Can parts of my navigation menu items be moved from their current location?

3. Is there a way to “highlight” the menu name when on that specific page?

Thanks!

---

<div class="post-metadata">

**Author:** ![Stephanie-OG](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stephanie-og/32/73267_2.png) [@Stephanie-OG](https://community.hubspot.com/u/Stephanie-OG)\
**Post date:** [September 4, 2018, 6:31pm UTC](https://community.hubspot.com/t/navigation-help/10067/2 "2018-09-04T18:31:06Z")

</div>

Hi there!

Depending on how much styling already exists in your portal, you can often do a good bit using the drag-and-drop modules on a HubSpot template without getting too much into HTML/CSS. However, it sounds like you might need a bit of CSS for what you’re trying to do.

**Sticky Header**

You can create a navigation that’s sticky by using “position: fixed” and then pushing down the content (with margin or padding). Something like this:

```auto
/* Fixed Header */
header {
 position: fixed; 
 top:0;
 left:0;
 width:100%;
}

/* Body Styling */
.container {
 margin-top: 120px;
}

```

You can view an example of this [here](https://codepen.io/stephanieogaygarcia/pen/MqoELb). Note that getting into CSS positioning and moving things out of their usual place can get tricky.

On HubSpot to do this you’ll want to give the container for your global header module a class (e.g. “sticky-header”) where you’ll apply the styling from the “header” above.

**Navigation**

You should be able to move parts of your navigation but the code required really depends on what you’re trying to do (again, forcing things about in your navigation typically requires CSS floats and can be tricky).

**Active Links**

To highlight the link of the page you’re currently on, you can use the [CSS :active selector](https://www.w3schools.com/cssref/sel_active.asp). However, I believe HubSpot typically adds an “active” class by default and encourages using “custom-menu-primary” as the class for your custom navigation, which you can style as follows:

```auto
.custom-menu-primary .hs-menu-wrapper>ul>li.active>a {
 /* Add styling here */
}

```

I hope that helps!

* * *

[![|300](https://d2qpr2jzcazej7.cloudfront.net/original/2X/e/e6ddb445b684524bbcbd802044a9ca3919d1fbc7.png)](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity)HubSpot Design / Development / Automation

[Website](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity) | [Contact](http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity)

_If this helped, please mark it as the solution to your question, thanks!_
