title: Remove extra white space from top in firefox
body: <p>Certain portions of the page looks different in firefox than chrome.
  This is what it looks like in chrome:</p>
  
  <p><img src="https://i.stack.imgur.com/Xxv21.png" alt="nav bar in chrome"></p>
  
  <p>This is what it looks like in firefox:</p>
  
  <p><img src="https://i.stack.imgur.com/lPw8I.png" alt="nav bar in firefox"></p>
  
  <p>HTML code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>html,
  body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    margin-top: 0;
    padding-top: 0;
    overflow-x: hidden;
  }
  @media print {
    body {
      margin-top: 0 !important;
    }
  }
  body {
    background-color: white;
    color: black;
    padding: 0;
    margin: 0;
    min-height: 100%;
    min-width: 100%;
    overflow-x: hidden;
  }
  .rowa {
    padding: 10px;
    background-color: black;
    color: white;
    height: 100%;
    margin: 0;
  }
  #title {
    font-size: 36px;
    display: inline-block;
    color: white;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;nav class="navbar navbar-inverse " id="navtop"&gt;
    &lt;div class="container-fluid rowa"&gt;
      &lt;div class="navbar-header"&gt;
        &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar"&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="#" id="title"&gt;title&lt;/a&gt;
      &lt;/div&gt;
      &lt;div class="collapse navbar-collapse" id="myNavbar"&gt;
        &lt;ul class="nav navbar-nav navbar-right  menu " id="menu1"&gt;
          &lt;li&gt;&lt;a href="#" id="home1"&gt; Home&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="#" id="book"&gt; Booking&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="#" id="rate"&gt;Rates&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="#" id="abt"&gt; About us&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="#" id="contact"&gt; Contact us&lt;/a&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/nav&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I am not able to remove the extra space from top and the extra padding within the nav-bar.</p>
  
  <p>I have set margin and padding to 0 for html and body in css, and min-width and min-height is 100%.</p>
  
  <p>Also there is extra spacing between an image and form in firefox (for small screen devices).</p>
  
  <p>How to I get rid of these extra spaces in firefox? Please help.</p>