Currently, I am working on a bootstrap template where I have created a div class
containing a logo. However, I have noticed that when I resize the Chrome window, the logo overlaps with the mobile menu.
Here is the mobile version of my site:
https://i.sstatic.net/oCZO5.jpg
*This is the desired appearance of the mobile version of my site**
https://i.sstatic.net/DuV9V.jpg
Below is the code I am using:
<div class="logo">
<img src="img/bulls-logo.png" class="img-responsive" width="500px" height="100px">
</div>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="#"><i class="fa fa-home" aria-hidden="true"></i> HOME<span class="sr-only">(current)</span></a></li>
...
...
</ul>
</div>
</div>
</nav>
For the CSS part:
.logo
{background-color: #FFF;
height: auto;
width: 100%;
padding-bottom: 10px;}
.navbar
{margin-bottom:0px !important;
font-size: 12px;
: #000;}