It seems like phone manufacturers are making our job more difficult with the introduction of larger phones. The Bootstrap Responsive Web Design is responding as a tablet instead of a phone, causing issues with the dropdown menu (hamburger menu) not showing up properly. This can be frustrating when trying to navigate on smaller devices in landscape mode.
For example, I designed it to display as col-xs-12
, but it is rendering as col-sm-12
on phones, making the regular menu too small and difficult to tap.
Below is the code snippet for the header:
<header>
<div class="header">
<nav class="navbar navbar-default" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">MENU</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/"><img src="images/banner.png" alt="banner" /></a>
</div>
<div class="collapse navbar-collapse navbar-right" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav" id="navigation">
<li class="active"><a href="/">Home</a></li>
<li><a href="about.php">about</a></li>
<li><a href="testimonials.php">testimonials</a></li>
<li><a href="services.php">services</a></li>
<li><a href="contact.php">contact</a></li>
</ul>
</div>
</div>
</nav>
</div>
</header>
If you have any suggestions on how to resolve this issue, please let me know!