xenexsoc Posted August 28, 2023 Posted August 28, 2023 Hi I have added around 20 sub menus on our site https://www.xenexsoc.com/soc-overview under Soc-As-A-Service menu, the problem is I need to add a few more sub menus under the main menu Soc-As-A-Service but as we add it the menus get cutoff on the workstation mode/browser. I was expecting to get a scroll bar automatically as the number of menus increases. Is there a setting or functrion available to add the scroll bar for sub menus? Thanks in Advance!
Lesum Posted August 28, 2023 Posted August 28, 2023 @xenexsoc Here's a code snippet to display a scrollbar on the first sub menu: .header-nav-item--folder:nth-child(1) .header-nav-folder-content { max-height: 300px; overflow:auto; } You have the flexibility to modify the "max-height:300px" value in the code. This adjustment directly influences the height of the submenu. If the submenu accommodates more items, a scrollbar will be automatically be displayed. Let me know how it goes. Thanks! Daniel-92 1 If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment