Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS navigation sub menu
    primarykey
    data
    text
    <p>My CSS code is not allowing the sub nav to stay open allowing the user to be able to select an option. What am i missing? I believe it is something to do with the last CSS style. As it is now it shows when you mouse over. As soon as you start to move your mouse down to select an option it disappears.</p> <p>Please could someone help:</p> <p><strong>HTML</strong></p> <pre><code>&lt;div id="navigation_bar"&gt; &lt;ul&gt; &lt;li id=""&gt;&lt;a href=""&gt;Home&lt;/font&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="Beauty_treatments.html"&gt;Beauty Treatments&lt;/a&gt; &lt;ul&gt; &lt;li&gt;&lt;a href=""&gt;Manicure &amp; Pedicure&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;Gel Manicure &amp; Pedicure&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;Waxing&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;Facials&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;Make-up&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;Eye Treatments&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p><strong>CSS</strong></p> <pre><code>#navigation_bar ul { list-style-type: none; margin: 0; padding: 0; } #navigation_bar ul li { float: left; } #navigation_bar ul li a { display: block; padding: 0 20px 0 20px; margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #222; font-weight: bold; text-decoration: none; line-height: 36px; border: none; } #navigation_bar ul li a:hover { border: none; color: #ffffff; background-image: url(Images/mouse_over_background.gif); z-index: 1; } #navigation_bar ul li ul li { float: none; z-index: 2; } #navigation_bar ul li ul { position: absolute; display: none; } #navigation_bar ul li:hover ul { display: block; } </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