title: Decreasing height of a menu
body: <p>I want to decrease the height of menu so I had <code>height:30px;</code> in #cssmenu but the text is not in the center of the menu.</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>#cssmenu {
    padding: 0;
    margin: 0;
    border: 0;
    background:#CDCDCD;
  }
  
  #cssmenu ul,
  #cssmenu li {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  #cssmenu ul {
    position: relative;
    z-index: 597;
  }
  
  #cssmenu ul li {
    float: left;
    min-height: 1px;
    vertical-align: middle;
  }
  #cssmenu ul li.hover,
  #cssmenu ul li:hover {
    position: relative;
    z-index: 599;
    cursor: default;
  }
  #cssmenu ul ul {
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 598;
    width: 100%;
  }
  #cssmenu ul ul li {
    float: none;
  }
  #cssmenu ul ul ul {
    top: 0;
    left: 190px;
    width: 190px;
  }
  #cssmenu ul li:hover &gt; ul {
    visibility: visible;
  }
  #cssmenu ul ul {
    bottom: 0;
    left: 0;
  }
  #cssmenu ul ul {
    margin-top: 0;
  }
  #cssmenu ul ul li {
    font-weight: normal;
  }
  #cssmenu a {
    display: block;
    line-height: 1em;
    text-decoration: none;
    height:30px;
  }
  /* Custom CSS Styles */
  
  #cssmenu &gt; ul {
    *display: inline-block;
  }
  #cssmenu:after,
  #cssmenu ul:after {
    content: '';
    display: block;
    clear: both;
  }
  #cssmenu ul {
    text-transform: uppercase;
  }
  #cssmenu ul ul {
    border-top: 3px solid #5f7a77;
    text-transform: none;
    min-width: 190px;
  }
  #cssmenu ul ul a {
    background: #759b98;
    color: #ffffff;
    border-bottom: 1px solid #3c4d60;
    border-top: 0 none;
    line-height: 100%;
    padding: 12px 12px;
    font-size: 12px;
  }
  #cssmenu ul ul ul {
    border-top: 0 none;
  }
  #cssmenu ul ul li {
    position: relative;
  }
  
  #cssmenu ul ul li:hover &gt; a {
    background: #5f7a77;
    color: #ffffff;
  }
  
  #cssmenu ul ul li.has-sub &gt; a:after {
     content: '+';
    position: absolute;
    top: 50%;
    right: 15px;
    margin-top: -8px;
  }
  #cssmenu ul li:hover &gt; a,
  #cssmenu ul li.active &gt; a {
   background: #5f7a77;
   color: #ffffff;
  }
  #cssmenu ul li.has-sub &gt; a:after {
     content: '+';
    margin-left: 5px;
  }
  #cssmenu ul li.last ul {
    left: auto;
    right: 0;
  }
  #cssmenu ul li.last ul ul {
    left: auto;
    right: 99.5%;
  }
  #cssmenu a {
  
  
    color: #3c4d60;
    padding: 0 15px;
  }
  #cssmenu &gt; ul &gt; li &gt; a {
    line-height: 48px;
    font-size: 12px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id='cssmenu'&gt;
  &lt;ul&gt;
     &lt;li&gt;&lt;a href='#'&gt;&lt;span&gt;Home&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
     &lt;li class='has-sub'&gt;&lt;a href='#'&gt;&lt;span&gt;Products&lt;/span&gt;&lt;/a&gt;
        &lt;ul&gt;
           &lt;li class='has-sub'&gt;&lt;a href='#'&gt;&lt;span&gt;Product 1&lt;/span&gt;&lt;/a&gt;
              &lt;ul&gt;
                 &lt;li&gt;&lt;a href='#'&gt;&lt;span&gt;Sub Product&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                 &lt;li class='last'&gt;&lt;a href='#'&gt;&lt;span&gt;Sub Product&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
           &lt;/li&gt;
           &lt;li class='has-sub'&gt;&lt;a href='#'&gt;&lt;span&gt;Product 2&lt;/span&gt;&lt;/a&gt;
              &lt;ul&gt;
                 &lt;li&gt;&lt;a href='#'&gt;&lt;span&gt;Sub Product&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                 &lt;li class='last'&gt;&lt;a href='#'&gt;&lt;span&gt;Sub Product&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
           &lt;/li&gt;
        &lt;/ul&gt;
     &lt;/li&gt;
     &lt;li&gt;&lt;a href='#'&gt;&lt;span&gt;About&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
     &lt;li class='last'&gt;&lt;a href='#'&gt;&lt;span&gt;Contact&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>