Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>.third-level-menu { position: absolute; top: 0; right: -150px; width: 150px; list-style: none; padding: 0; margin: 0; display: none; } .third-level-menu &gt; li { height: 30px; background: #999999; } .third-level-menu &gt; li:hover { background: #CCCCCC; } .second-level-menu { position: absolute; top: 30px; left: 0; width: 150px; list-style: none; padding: 0; margin: 0; display: none; } .second-level-menu &gt; li { position: relative; height: 30px; background: #999999; } .second-level-menu &gt; li:hover { background: #CCCCCC; } .top-level-menu { list-style: none; padding: 0; margin: 0; } .top-level-menu &gt; li { position: relative; float: left; height: 30px; width: 150px; background: #999999; } .top-level-menu &gt; li:hover { background: #CCCCCC; } .top-level-menu li:hover &gt; ul { /* On hover, display the next level's menu */ display: inline; } /* Menu Link Styles */ .top-level-menu a /* Apply to all links inside the multi-level menu */ { font: bold 14px Arial, Helvetica, sans-serif; color: #FFFFFF; text-decoration: none; padding: 0 0 0 10px; /* Make the link cover the entire list item-container */ display: block; line-height: 30px; } .top-level-menu a:hover { color: #000000; }</code></pre> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul class="top-level-menu"&gt; &lt;li&gt;&lt;a href="#"&gt;About&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Services&lt;/a&gt;&lt;/li&gt; &lt;li&gt; &lt;a href="#"&gt;Offices&lt;/a&gt; &lt;ul class="second-level-menu"&gt; &lt;li&gt;&lt;a href="#"&gt;Chicago&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Los Angeles&lt;/a&gt;&lt;/li&gt; &lt;li&gt; &lt;a href="#"&gt;New York&lt;/a&gt; &lt;ul class="third-level-menu"&gt; &lt;li&gt;&lt;a href="#"&gt;Information&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Book a Meeting&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Testimonials&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Jobs&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Seattle&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Contact&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;</code></pre> </div> </div> </p> <p><br /> I have also put together a live demo that's available to play with <a href="http://jsfiddle.net/4ScFz/400/" rel="nofollow noreferrer">HERE</a></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