Trying to design a sleek navbar that is proportional to the logo size, while also allowing for additional content below it.
The jsFiddle link below showcases the current setup. The black line signifies the bottom of the nav bar, which has expanded to match the image dimensions.
Multiple attempts have been made to set the nav bar height at 50px, but this adjustment causes the content below it to shift upwards, disrupting the overall layout. Enclosing everything within containers was another approach tested, however, it did not yield the desired outcome. It seems like the solution may involve implementing one or both of these ideas, but the execution remains unclear.
Dive into the Demo on jsFiddle
Take a look at the code snippet:
<div class ="container-fluid">
<a href="#" class="pull-left"><img id="logo" class="img-responsive" src="https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQevVAv_ZVUfI8i5cMpRZGbIu71MGjPUqR70qR7F877JKyWJWdEXw"></a>
<nav class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse"
data-target="#example-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- <a class="navbar-brand" href="#"><img class="img-responsive" src="img/logo.jpg"></a> -->
</div>
<div class="collapse navbar-collapse" id="example-navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="#">Search</a></li>
<li><a href="#">Archives</a></li>
<li><a href="#">Education</a></li>
<li><a href="#">About</a></li>
</ul>
</div>
</nav>
Would greatly appreciate any input or advice on how to address this issue.