Equal horizontal space between links in responsive navigation?
<p>I am trying to make horizontal menu navigation. I have several links in navigation, and I would like to have equal horizontal space between them.</p>

<p>How to make links in horizontal menu with equal space between them?</p>

<p>HTML:</p>

<pre><code>    &lt;div id="header"&gt;
    &lt;div class="secondary-navigation"&gt;
        &lt;div itemscope itemtype="http://schema.org/SiteNavigationElement"&gt;
            &lt;nav id="navigation"&gt;
            &lt;ul id="menu-main" class="menu"&gt;
             &lt;li class="menu-item"&gt;&lt;a href="" title="Link" itemprop="url"&gt;Link&lt;/a&gt;&lt;/li&gt;
             &lt;li class="menu-item"&gt;&lt;a href="" title="Link" itemprop="url"&gt;Link&lt;/a&gt;&lt;/li&gt;
             &lt;li class="menu-item"&gt;&lt;a href="" title="Link" itemprop="url"&gt;Link&lt;/a&gt;&lt;/li&gt;
             &lt;li class="menu-item"&gt;&lt;a href="" title="Link" itemprop="url"&gt;Link&lt;/a&gt;&lt;/li&gt;
             &lt;li class="menu-item"&gt;&lt;a href="" title="Link" itemprop="url"&gt;Link&lt;/a&gt;&lt;/li&gt;
             &lt;li class="menu-item"&gt;&lt;a href="" title="Link" itemprop="url"&gt;Link&lt;/a&gt;&lt;/li&gt;
             &lt;li class="menu-item"&gt;&lt;a href="" title="Link" itemprop="url"&gt;Link&lt;/a&gt;&lt;/li&gt;
             &lt;li class="menu-item"&gt;&lt;a href="" title="Link" itemprop="url"&gt;Link&lt;/a&gt;&lt;/li&gt;
             &lt;/ul&gt;
             &lt;a href="#" id="pull"&gt;Menu&lt;/a&gt;
             &lt;/nav&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;/div&gt;
</code></pre>

<p>CSS:</p>

<pre><code>#header {
    position: relative;
    float: left;
    padding: 0 0 0 0;
    clear: both;
}

/*-----------------------------------------------
/* Header navigation
/*---------------------------------------------*/
.secondary-navigation {
    display: block;
    width: 100%;
    float: left;
}
.secondary-navigation a {
    vertical-align: top;
    color: #F1F1F1;
    font-weight: bold;
    margin-top: 8px;
    margin-bottom: 4px;
    line-height:18px;
    font-size: 15px;
    border-bottom: 2px solid #333888;
}

.secondary-navigation a:hover, .secondary-navigation .sfHover {
     color: #F1F1F1;
     border-bottom: 2px solid #F1F1F1;
      }
.secondary-navigation li li a { line-height: 1 }
.secondary-navigation a .sub {
    font-size: 12px;
    font-weight: normal;
    color: #CFCFCF;
    text-transform: none;
}
.menu-item-has-children &gt; a:after {
    content: "▼";
    font-size: 10px;
    color: #F1F1F1;
    position: absolute;
    right: 12px;
    top: 22px;
}
.footer-navigation .menu-item-has-children &gt; a:after { display: none }
.sub-menu .menu-item-has-children&gt;a:after {
    right: 0;
    top: 17px;
}
.menu .current-menu-item &gt; a { background: #fff }
.menu .current-menu-item &gt; a:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background: #fff;
    bottom: 0px;
    left: 0;
    z-index: 1;
}
#navigation {
    margin: 0 auto;
    font-size: 13px;
    width: 100%;
    float: left;
}
#navigation ul {
    margin: 0 auto;
    list-style: none;  /*Added*/}
#navigation .menu { float: left; }
#navigation ul li {
    float: left;
    position: relative;
    margin-left: 0;
}
#navigation &gt; ul li:first-child a {  }
#navigation &gt; ul li:last-child a { border-right: 0 }
#navigation ul .header-search { float: right }
#navigation &gt; ul &gt; li:last-child { border-right: none }
#navigation ul li a, #navigation ul li a:link, #navigation ul li a:visited { display: block }
#navigation &gt; ul &gt; .current a {
    background: transparent;
    color: #555 !important;
}
#navigation li:hover ul, #navigation li li:hover ul, #navigation li li li:hover ul, #navigation li li li li:hover ul {
    opacity: 1;
    left: -228px;
    top: 0;
}
#navigation ul ul {
    position: absolute;
    width: 226px;
    z-index: 400;
    font-size: 12px;
    color: #333888;
    border: 1px solid #F1F1F1;
    background: #FFFFFF;
    padding: 0;
}
#navigation ul ul li {
    margin-left: 0;
    padding: 0 10%;
    width: 80%;
    color: #333;
}
#navigation ul ul li:hover { background: #F1F1F1 }
#navigation ul ul a, #navigation ul ul a:link, #navigation ul ul a:visited {
    padding: 12px 0;
    position: relative;
    border-left: 0;
    background: transparent;
    border-right: 0;
    text-transform: none;
    line-height: 1.4;
    margin-right: 0;
    min-height: 100%;
}
#navigation ul ul li:last-child a { border-bottom: none }
#navigation ul ul {
    opacity: 0;
    left: -999em;
}
#navigation ul li:hover ul {
    left: -1px;
    opacity: 1;
    top: 81px;
}
#navigation ul ul li:hover ul {
    top: -1px;
    left: -228px;
    padding-top: 0;
}
#navigation ul ul ul:after { border-color: transparent }
</code></pre>

<p>I tried something like <a href="http://codepen.io/bigmantonyd/pen/ZYGoop" rel="nofollow">this</a>, but it does not work for me.</p>