title: Why my nav bar doesn't work?
body: <p>I'm new in bootstrap.
  I'm trying to configure my  menu bar. I added this line of code into my header:</p>
  
  <pre><code>&lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
  </code></pre>
  
  <p>After that, I added this block of code in my view:</p>
  
  <pre><code>&lt;nav class="navbar navbar-default"&gt;
    &lt;div class="container-fluid"&gt;
      &lt;div class="navbar-header"&gt;
        &lt;a class="navbar-brand" href="#"&gt;WebSiteName&lt;/a&gt;
      &lt;/div&gt;
      &lt;ul class="nav navbar-nav"&gt;
         &lt;li class="dropdown"&gt;&lt;a class="dropdown-toggle" data-toggle="dropdown" href="#"&gt;Inicio &lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
          &lt;ul class="dropdown-menu"&gt;
            &lt;li&gt;&lt;a href="#"&gt;Opcion 1&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#"&gt;Opcion 2&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#"&gt;Opcion 3&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Pagina 2&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Pagina 3&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p>This is what I want:
  <a href="https://i.stack.imgur.com/0KJYL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0KJYL.png" alt="enter image description here"></a></p>
  
  <p>This is what I'm getting:</p>
  
  <p><a href="https://i.stack.imgur.com/rqsd3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rqsd3.png" alt="enter image description here"></a></p>
  
  <p>I want all items horizontally, not vertically...
  Maybe this is very basic, but this is the first time that I'm using bootstrap.
  Could you help me, please?</p>