title: How to set height of <nav> in html or css
body: <p>How can I decrease the size of a <code>&lt;nav&gt;</code> tag in CSS? I cannot seem to figure it out. I have provided all of the code from my project below. My code did have PHP, but I have removed it due to it being unnecessary. Here is a <a href="https://jsfiddle.net/x5h226pp/" rel="nofollow">JSFiddle</a>, if you wish to preview the code there.</p>
  
  <p><strong>HTML and CSS:</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#top-menu {
    top: 0;
    position: fixed;
  }
  nav {
    position: relative;
    /*float: left;*/
    width: 100%;
    background: #1E1E1E;
    /*    display: table; */
    margin: 0;
    text-align: center;
    height: 25px;
    border: none;
    border-width: 0;
    margin: 0;
    padding: 10px 10px;
  }
  nav ul ul {
    display: none;
  }
  nav ul li:hover &gt; ul {
    display: block;
    border: none;
    border-width: 0;
  }
  nav ul {
    background: #1E1E1E;
    color: white;
    padding: 10px 10px;
    border-radius: 0;
    list-style: none;
    position: relative;
    display: inline-table;
    border-width: 0;
    border: none;
  }
  nav ul:after {
    content: "";
    clear: both;
    display: block;
  }
  nav ul li {
    float: left;
    border: none;
    border-width: 0;
  }
  nav ul li:hover {
    background: #1E1E1E;
    background-color: orange;
    color: white;
  }
  nav ul li:hover a {
    color: #fff;
  }
  nav ul li a {
    display: block;
    height: 25px;
    padding: 10px 10px;
    color: #757575;
    text-decoration: none;
    border: none;
    border-width: 0;
  }
  nav ul ul {
    background: #1E1E1E;
    color: white;
    border-radius: 0px;
    padding: 10px 10px;
    position: absolute;
    top: 50px;
    border-width: 0;
    margin-bottom: 0;
  }
  nav ul ul li {
    float: none;
    border-top: 1px solid #6b727c;
    border-bottom: 1px solid #575f6a;
    position: relative;
  }
  nav ul ul li a {
    padding: 10px 10px;
    color: #fff;
    height: auto;
  }
  nav ul ul li a:hover {
    background: #4b545f;
    background-color: orange;
  }
  nav ul ul ul {
    position: absolute;
    left: 100%;
    top: 0;
  }
  nav li#english a {
    background: url(images/english.jpg) no-repeat;
    background-position: center center;
  }
  nav li#english a:hover {
    background: url(images/english.jpg) no-repeat;
    background-position: center center;
    background-color: orange;
  }
  nav li#english a.current {
    background: url(images/english.jpg) no-repeat;
    background-position: center center;
    cursor: default;
  }
  /*--------------------------------------------*/
  
  #menu {
    background-color: #1E1E1E;
    text-align: center;
    padding-bottom: 0px;
  }
  body {
    margin: 0px;
  }
  .clearfloat {
    clear: both;
    margin: 0;
    padding: 0;
  }
  /*--------------------------------------------*/
  
  #bottom {
    float: left;
    width: 100%;
    background: #1E1E1E;
    /*display: table; */
    margin: 0;
    text-align: center;
    min-height: 25px;
    height: 25px;
    border-width: 0px;
    margin-top: 0px;
    padding-top: 0px;
    bottom: 0px;
    position: fixed;
  }
  #bottom ul ul {
    display: none;
  }
  #bottom ul li:hover &gt; ul {
    display: block;
  }
  #bottom ul {
    background: #1E1E1E;
    color: white;
    padding: 0 0;
    border-radius: 0;
    list-style: none;
    position: relative;
    display: inline-table;
  }
  #bottom ul:after {
    content: "";
    clear: both;
    display: block;
  }
  #bottom ul li {
    float: left;
  }
  #bottom ul li:hover:nth-child(1) {
    background: #1E1E1E;
    color: #757575;
    text-decoration: none;
  }
  #bottom ul li:hover:nth-child(2) {
    background: #1E1E1E;
    color: #757575;
    text-decoration: none;
  }
  #bottom ul li:hover {
    background: #1E1E1E;
    color: white;
    text-decoration: underline;
  }
  #bottom ul li:hover a {
    color: #fff;
  }
  #bottom ul li a {
    display: block;
    padding: 25px 40px;
    color: #757575;
    text-decoration: none;
  }
  #bottom ul ul {
    background: #1E1E1E;
    color: white;
    border-radius: 0px;
    padding: 0;
    position: absolute;
    top: 100%;
    width: auto;
  }
  #bottom ul ul li {
    float: none;
    border-top: 1px solid #6b727c;
    border-bottom: 1px solid #575f6a;
    position: relative;
  }
  #bottom ul ul li a {
    padding: 15px 40px;
    color: #fff;
  }
  #bottom ul ul li a:hover {
    background: #4b545f;
  }
  #bottom ul ul ul {
    position: absolute;
    left: 100%;
    top: 0;
  }
  /*--------------------------------------------*/
  
  .bottommenuitem {
    vertical-align: middle;
    padding: 25px 40px;
    color: #757575;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html5&gt;
  &lt;html&gt;
  
  &lt;head&gt;
    &lt;title&gt;Firma A/S&lt;/title&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
    &lt;link rel="stylesheet" type="text/css" href="cssMenu.css"&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;nav id="top-menu"&gt;
      &lt;p id="menu" style="margin-bottom: -25"&gt;
        &lt;a href="Index.html"&gt;
          &lt;img src="Tilbage.jpg" alt="Tilbage" width="243" height="243" /&gt;
        &lt;/a&gt;
        &lt;img src="Top_10.jpg" alt="" width="739" height="243" /&gt;
      &lt;/p&gt;
      &lt;nav id="top"&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="index.php"&gt;Velkommen&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="index.php"&gt;Firma A/S&lt;/a&gt;
            &lt;ul&gt;
              &lt;li&gt;&lt;a href="index.php"&gt;Koncern oversigt&lt;/a&gt;
                &lt;ul&gt;
                  &lt;li&gt;&lt;a href="index.php"&gt;Ejendomsselskaber&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li&gt;&lt;a href="index.php"&gt;Investeringsselskaber&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li&gt;&lt;a href="index.php"&gt;Øvrige selskaber&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li&gt;&lt;a href="index.php"&gt;Lukkede eller solgte selskaber&lt;/a&gt;
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
              &lt;li&gt;&lt;a href="index.php"&gt;Jubilæum&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;&lt;a href="index.php"&gt;Årsrapport&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;&lt;a href="index.php"&gt;Galleri&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;&lt;a href="index.php"&gt;Kontaktoplysninger&lt;/a&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="index.php"&gt;Privat&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="index.php"&gt;Køb og salg&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a id="english" href="index.php"&gt;In English&lt;/a&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
        &lt;!-- PHP was here --&gt;
      &lt;/nav&gt;
    &lt;/nav&gt;
    &lt;div style="margin-top: 410; margin-bottom: 115"&gt;
      &lt;!-- More PHP was here --&gt;
    &lt;/div&gt;
    &lt;nav id="bottom"&gt;
      &lt;ul&gt;
        &lt;li class="bottommenuitem"&gt;Firma A/S&lt;/li&gt;
        &lt;li class="bottommenuitem"&gt;phone No&lt;/li&gt;
        &lt;li&gt;&lt;a href="mailto:xxxx@xxx.xx"&gt;xxx@xxx.xx&lt;/a&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/nav&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Any help is appreciated, thank you.</p>