Note that there are some explanatory texts on larger screens.

plurals
  1. POFilling li with anchor when li is display:inline
    primarykey
    data
    text
    <p>After about 15/20 minuets of research and googling I have not found a solution.</p> <p>I am trying to fill a list item with an anchor however the li is set to display inline code:</p> <pre><code>#nav{ font-family:"chaparral-pro", Georgia, "Times New Roman", serif; position: relative; background-color: #404041; width: 100%; height: 40px; text-align: center; font-size: 15px; margin-top: -15px; } #nav a{ color: #f9a13e; text-decoration: none; } #nav a{ display: inline-block; height: 100% } #nav a:hover{ color: #fff; text-decoration: none; } ul#navInner{ position: relative; text-align: left; width: 840px; margin: 0 auto; height: 40px; padding-top: 10px; } ul#navInner li{ display: inline; border-right: 1px solid white; height: 40px; padding: 11px 8px 16px 8px; } li.noBorderR{ border: none !important; } </code></pre> <p>HTML:</p> <pre><code>&lt;div id="nav"&gt; &lt;ul id="navInner"&gt; &lt;li&gt;&lt;a href="_#"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="_#"&gt;About Us&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="_#"&gt;Our People&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="_#"&gt;How can we help&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="_#"&gt;Newsroom&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="_#"&gt;Resources&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="_#"&gt;Careers&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="_#"&gt;Contact Us&lt;/a&gt;&lt;/li&gt; &lt;li class="noBorderR"&gt;&lt;a href="_#"&gt;Text Size&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;&lt;!-- end nav --&gt; </code></pre> <p>Sorry for posting such a basic question on here! I cannot figure this one out! </p> <p>If I set the a{} to display: block it puts the whole li on block, and inline-block does nothing.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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