title: How to use background image in bootstrap navigation?
body: <p>I want to use background image in navigation. I have tried to add image through style.css file. But I have tried to using color. This code only takes color not any images. Con anyone explain how it occur &amp; how to solve this ?</p>
  
  <pre><code>&lt;div class="container-fluid header_bg"&gt;
      &lt;nav class="navbar" role="navigation"&gt;
       &lt;div class="container"&gt;
        &lt;div class="navbar-header"&gt;
         &lt;button  type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" area-controls="navbar"&gt;
            &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
            &lt;span class="icon-bar"&gt;&lt;/span&gt;
            &lt;span class="icon-bar"&gt;&lt;/span&gt;
            &lt;span class="icon-bar"&gt;&lt;/span&gt;
         &lt;/button&gt;
         &lt;a class="navbar-brand" href="#"&gt;&lt;img src="images/logo.png" alt=""/&gt;&lt;/a&gt;
        &lt;/div&gt;
        &lt;div id="navbar" class="collapse navbar-collapse" &gt;
         &lt;ul class="nav navbar-nav"&gt;
           &lt;li class="active"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
           &lt;li&gt;&lt;a href="#"&gt;Porfolio&lt;/a&gt;&lt;/li&gt;
           &lt;li&gt;&lt;a href="#"&gt;About&lt;/a&gt;&lt;/li&gt; 
           &lt;li&gt;&lt;a href="#"&gt;Contact Us&lt;/a&gt;&lt;/li&gt; 
         &lt;/ul&gt;
         &lt;ul class="nav navbar-nav navbar-right"&gt;
           &lt;li&gt;&lt;a href="#"&gt;
          &lt;span class="glyphicon glyphicon-user"&gt;&lt;/span&gt; Sign Up&lt;/a&gt;
           &lt;/li&gt;
           &lt;li&gt;&lt;a href="#"&gt;
          &lt;span class="glyphicon glyphicon-log-in"&gt;&lt;/span&gt; Login&lt;/a&gt;
           &lt;/li&gt;
         &lt;/ul&gt;
  
        &lt;/div&gt;
       &lt;/div&gt;
      &lt;/nav&gt;
     &lt;/div&gt;
  </code></pre>
  
  <p>In style.css file :</p>
  
  <pre><code>.header_bg {background-image:url("images/header_bg.png") repeat-x scroll 0 0;}
  </code></pre>