Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>SEE UPDATED CODE Here problem of second sublisting. So you need to add class and css to second li that is coming after 1st li. See my example i hope you can better undersand its working.</p> <pre><code>--------------CSS------------------ .SubMenu2 ul { display:none;} li.SubMenu2:hover &gt; ul{ display:block; } -------------HTML------------------ &lt;ul class="menu"&gt; &lt;li&gt;&lt;a href="#"&gt;My dashboard&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Likes&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Views&lt;/a&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#" class="documents"&gt;Documents&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" class="signout"&gt;Messages&lt;/a&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#" class="documents"&gt;Messages1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" class="messages"&gt;Messages2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" class="signout"&gt;Messages3&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li id="SubMenu2"&gt;&lt;a href="#" class="signout"&gt;Views&lt;/a&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#" class="documents"&gt;Viewsub1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" class="messages"&gt;Viewsub2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" class="signout"&gt;Viewsub3&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;Uploads&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Videos&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Documents&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;li&gt;&lt;a href="#"&gt;Uploads&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Videos&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Documents&lt;/a&gt;&lt;/li&gt; </code></pre>
    singulars
    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.
    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