Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS Menu Nav Messed Up
    text
    copied!<p>I'm in the process of updating a header navigation menu for a website shown here:</p> <p>As you can see, the text &amp; separators are pushed down and the menu looks off. I've tried a couple of different things to no avail. I'd like to have the text &amp; separators vertically aligned with each other without that extra padding at the top.</p> <p><strong>CSS</strong></p> <pre><code>/*Header Link Wrap &amp; Align*/ #nav-wrap { width: 100%; overflow: hidden; height: 52px; background-image: url(/nd/images/hlink-bg.jpg); background-repeat: repeat-x; } #nav { text-align: center; } #nav li { list-style: none; display: inline-block; vertical-align: middle; padding: 0px 10px 0px 0px; } #nav a { color: #FFFFFF; display: inline-block; font-family:arial; margin: 0; padding: 9px 18px 9px 18px; text-decoration: none; vertical-align: middle; } #nav a:hover { background-color: #ffa500; color: #fff9; } .head-divider { list-style: none; vertical-align: middle; display: inline-block; margin: 0; width:2px; height:52px; background-image:url(/nd/images/h-divider.jpg); background-repeat: no-repeat; } </code></pre> <p><strong>HTML</strong></p> <pre><code>&lt;div id="nav-wrap"&gt; &lt;ul id="nav"&gt; &lt;li&gt;&lt;a href="homes.php"&gt;Custom Homes&lt;/a&gt;&lt;/li&gt; &lt;li class="head-divider"&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="inspections.php"&gt;Inspection Services&lt;/a&gt;&lt;/li&gt; &lt;li class="head-divider"&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="energy.php"&gt;Energy Audits&lt;/a&gt;&lt;/li&gt; &lt;li class="head-divider"&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="contact.php"&gt;Contact&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>Your help is much appreciated.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload