Currently, I am in the process of learning bootstrap but encountering some difficulties. The website appears normal on a computer screen but displays differently on a phone. Specifically, the navbar is not as responsive as desired. Here is an example: http://gyazo.com/38234d9e9d9e9dc5dc81903427bb455b. The image seems to be going under the navbar. Any suggestions on how to address this issue?
You can view the website here:
This snippet shows my current navbar code:
<!-- Navigation -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse navbar-right pull-right" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li>
<a href="index.html">Home</a>
</li>
<li>
<a href="services.html">Services</a>
</li>
<li>
<a href="about.html">About Us</a>
</li>
// Additional dropdown menu items
<li>
<a href="contact.html">Contact</a>
</li>
</ul>
</div>
</div>
</nav>
In addition, here is the CSS related to the navbar:
.navbar .nav > li > a {
font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;
float: none;
line-height: 19px;
padding: 9px 10px 11px;
text-decoration: none;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
color: white;
font-size: 1.2em;
}
.navbar-inverse{
background:rgba(0,0,0,0.2);
border-radius: 5px;
border-bottom: none;
}
@media only screen and (max-width: 766px) {
.collapsing, .in {background-color: #f7f7f7;}
.collapsing ul li a, .in ul li a {color: #555!important;}
.collapsing ul li a:hover, .in ul li a:hover {color: #f1f1f1!important;}
}