Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS nav menu (background gradient issue)
    primarykey
    data
    text
    <p>I have made a multi tier navigation menu and have an issue where tiers below tier 1 have an unexpected block to the left of the options. I assume the issue stems from having a background gradient but have not been able to resolve the issue so far. Can anyone shed any light on this for me please? have put a link below.</p> <p><a href="http://tinypic.com/r/2pr7alj/5" rel="nofollow">http://tinypic.com/r/2pr7alj/5</a></p> <p><strong>The HTML code below:</strong></p> <pre><code> &lt;div id="menu"&gt; &lt;ul class="menu1"&gt;&lt;!--Start of menu level 1--&gt; &lt;li&gt;@Html.ActionLink("Home","#","Home") &lt;/li&gt; &lt;li&gt;@Html.ActionLink("A","#","A") &lt;li&gt;@Html.ActionLink("B","#","B") &lt;ul class="menu2"&gt;&lt;!--Start of menu level 2--&gt; &lt;li&gt;@Html.ActionLink("1","#","1") &lt;li&gt;@Html.ActionLink("2","#","2") &lt;li&gt;@Html.ActionLink("3","#","3") &lt;/li&gt;&lt;!--End of menu level 2--&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;@Html.ActionLink("C","#","C") &lt;/li&gt; &lt;/ul&gt;&lt;!--End of menu level 1--&gt; &lt;/div&gt; </code></pre> <p><strong>Below is the CSS related to the menu.</strong> </p> <pre><code>#menu { width:100%; height:44px; background: linear-gradient(to bottom, #7db9e8 19%,#2989d8 51%,#1e5799 67%,#1e5799 81%,#207cca 100%);} ul.menu1 { list-style-type:none; float:left; margin-top:0px;} ul.menu2, ul.menu3, ul.menu4{ list-style-type:none;} ul li { float:left; width:200px; position:relative;} ul li a { text-decoration:none; font-size:1em; color:#fff; font-weight:bold; display:block; padding: 5px 5px 5px 5px; margin:0px; line-height:32px; border:1px solid; text-align:center; white-space:nowrap;} ul.menu2 { display:none; position:absolute; left:-40px;} ul.menu3, ul.menu4 { display:none; position:absolute; left:160px; top:0px;} ul li:hover ul.menu2 { display:block; background-color:#2472bb;} ul ul li:hover ul.menu3 { display:block; background-color:#2472bb;} ul ul ul li:hover ul.menu4 { display:block; background-color:#2472bb;} ul li:hover &gt; a { background-color:#839ab6;} ul li:hover a:hover { background-color:#538dd5;} </code></pre>
    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