# Overlapping sub-menu

**URL:** <https://community.hubspot.com/t/overlapping-sub-menu/8240>\
**Category:** CMS Development\
**Created:** [March 23, 2018, 9:49am UTC](https://community.hubspot.com/t/overlapping-sub-menu/8240 "2018-03-23T09:49:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jlawal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jlawal/32/5125_2.png) [@Jlawal](https://community.hubspot.com/u/Jlawal)\
**Post date:** [March 23, 2018, 9:49am UTC](https://community.hubspot.com/t/overlapping-sub-menu/8240/1 "2018-03-23T09:49:49Z")

</div>

Hello all,

I have an issue with a sub-menu on my template. Articles with lots of headers cause the menu to hide the headers. I’m not sure how best to explain so please see the gif below:

![HS-comm.gif](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/0/80f1854b3977124e0b4284f72373f485f21ed2fb.gif)

[This is the page that the issue is on](https://www.groupcall.com/support/messenger/payourschool/faqs?hs_preview=OHFvNYoW-5603811647#where_does_payourschool_get_its_data) and [this is an example](https://www.groupcall.com/support/messenger/sending-messages? __hstc=12302699.3beaf28f36930530f83b389c99581510.1521028882942.1521734932858.1521795754447.41&__ hssc=12302699.4547.1521795754447&__hsfp=3952090351) of a page that it works perfectly on.

Any help on this will be much appreciated.

Many thanks,

Jamila

---

<div class="post-metadata">

**Author:** ![AJLaPorte\_diagr](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ajlaporte_diagr/32/24548_2.png) [@AJLaPorte\_diagr](https://community.hubspot.com/u/AJLaPorte_diagr)\
**Post date:** [March 26, 2018, 7:28pm UTC](https://community.hubspot.com/t/overlapping-sub-menu/8240/2 "2018-03-26T19:28:37Z")

</div>

Hi Jamila,

This is happening as your sidebar is longer than the viewport size so when the menu is getting affixed to the area on scrolling, the rest of the content (while not visible in the viewport) is being shown below it until you get far enough down.

You can do one of three things:

- Remove the affix of the sidebar so it isn’t stickied. This would mean it scrolls with the rest of the page.
- Adjust the size of the sidebar and text inside to fit (though you would still have this issue if you were using say an 800x600 resolution or a smaller desktop screen size.
- Use an approach similar to the answer given here: [https://foundation.zurb.com/forum/posts/56146-how-to-scroll-a-long-sticky-nav-sidebar](https://foundation.zurb.com/forum/posts/56146-how-to-scroll-a-long-sticky-nav-sidebar) essentially setting a max-height on your element to be 100% of the viewport height (max-height: 100vh) and then setting the overflow on just the vertical axis so you can scroll when there is more content (overview-y: auto). You’ll most likely have to do some extra css/coding to get it to fit your needs but it might help you.

Hope this helps get you going in the right direction for your sidebar.
