Reputation: 513
I am having an issue on a mobile version of a website where the dropdown menu doesn't appear completely in view because of the position of the particular menu item and the amount of items in the dropdown
The image below is how i would like it to appear, so it would focus the area when the parent is clicked.
Would it be possible to have it so the menu scrolls down to show all the sub items when clicked ?
You can view website at http://www.ndb.ie/2016/. It's using the standard Bootstrap menu code.
Upvotes: 1
Views: 1205
Reputation: 148
Put this CSS in your style.css file
For Center Menu in Responsive
@media only screen and (max-width: 767px) {
.nav-justified > .dropdown .dropdown-menu {
left: 50% !important;
margin-left: -80px; /* (Half Menu Width in margin left) */
top: 100%;
}
}
For removing Scroll in Responsive
.navbar-collapse.in {
overflow-y: visible !important;
}
Upvotes: 1
Reputation: 96
You should override bootstrap style.
.navbar-collapse.in {
overflow-y: visible!important;
}
Upvotes: 0