Edgar Kiljak Edgar Kiljak - 1 year ago 81
CSS Question

Navigation bar position 4

Logo and li are closer to centre even though I have specified navbar-right. On my mac 13' looks good but on my PC in office looks different. Also picture is not really responsive and .img-responsive doesn't do anything. Please help!

Here is HTML:

<!-- Navbar style available in Bootstrap framework-->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<!-- /end-->
<!-- Anything that has to be responsive we are going to keep inside the Bootstrap grid -->
<div class="container">
<!-- /end -->
<div class="navbar-header">

<button type="button" class="navbar-toggle btn-lg" data-toggle="collapse" data-target=".navbar-collapse" id="btnnavbar">
<!-- For screen readers only -->
<span class="sr-only">Toggle navigation</span>
<!-- /end -->
<!-- Hamburger menu button appears when browser window has been shrinked -->
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<!-- /end -->
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand " href="http://codepen.io/ekilja01"><img class="img-responsive" id="imgbrand" src="http://www.kiljakandweb.com/favicon.png" alt="brand logo"></a>


<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li id="btnhome"><a href="#">About</a></li>
<li id="btnhome"><a href="#">Portfolio</a></li>
<li id="btnhome"><a href="#">Contact</a></li>


<div class="container" id="firstpage">

<div class="row">
<div class="col-md-12">
<h1 class="text-center"></h1>

And CSS:

.navbar {
min-height: 80px;
margin-bottom: 0;
#btnnavbar {
margin-top: 20px;

#btnhome {
margin-top: 16px;

#imgbrand {
margin-top: -70px;
margin-left: px;
height: 220px;
width: 280px;

#firstpage {
margin-top: 90px;

.button {
color: blue;

Answer Source

I think that replace <div class="container"> with <div class="container-fluid"> has to solve the issue.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download