I recently created a website at . When I view this website on Google Chrome using the device toolbar to simulate landscape mode on mobile, the navigation menu works perfectly. Bootstrap adjusts the height of the navigation div and allows for scrolling. In the developer tools, Bootstrap uses the following media query:
@media (max-device-width: 480px) and (orientation: landscape)
.navbar-fixed-bottom .navbar-collapse, .navbar-fixed-top .navbar-collapse {
max-height: 200px;
}
However, when I actually open my website on an Android phone in landscape mode, the max-height: 200px
rule is not applied. As a result, the last two navigation items extend below the screen, making them inaccessible. This leads me to question:
Why does the Bootstrap navigation extend below the screen in landscape mode on phones?