Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS dropdown menu won't stay visible when you hover over the menu itself
    primarykey
    data
    text
    <p>Yes, I know: Many have asked this question before. For whatever reason, most of the forums with this question have different solutions. Or they seem different to me (someone who doesn't quite understand how the CSS effects work). </p> <p>Anyways, I'm trying to make a simple dropdown menu with CSS. When you hover over a picture of a dome, a menu should drop down. No other link should have a dropdown menu except for the picture of the dome. The dropdown menu becomes visible when you hover over the dome but disappears when you hover over the menu itself, rendering the menu useless. Thanks for your help.</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;header&gt; &lt;title&gt;Ink Lit Mag&lt;/title&gt; &lt;link href="http://fonts.googleapis.com/css?family=Alef" rel="stylesheet" type="text/css"&gt; &lt;link href='http://fonts.googleapis.com/css?family=Della+Respira' rel='stylesheet' type='text/css'&gt; &lt;style&gt; /*Toolbar*/ #toolbar { position:fixed; top:0px; left:0px; width:100%; height:50px; background-color:#000000; } #toolbar li { list-style-type:none; float:left; } #toolbarText { position:fixed; top:12px; left:100px; color:#ffffff; font-family: "Alef", sans-serif; font-size:20px; } #dome { position:fixed; top:8px; left:5px; width:28px; height:33.3333333333; } /*Toolbar link effects*/ a.toolbarLink:link { color:#ffffff; text-decoration:none; } a.toolbarLink:hover { color:#ffffff; } a.toolbarLink:visited { color:#ffffff; } a.toolbarLink:active { color:#ffffff; } /*Menu*/ #toolbar .subnav { display:none; position: absolute; top:50px; left:0px; width:85px; padding-left:5px; padding-right:5px; padding-top:5px; padding-bottom:0px; background-color:#c0c0c0; } ul#primaryNav li:hover .subnav { display:block; } /*Menu link effects*/ a.menuLink:link { color:#ffffff; text-decoration:none; } a.menuLink:hover { color:#ffffff; background-color:#000000 } a.menuLink:visited { color:#ffffff; } a.menuLink:active { color:#ffffff; } &lt;/style&gt; &lt;/header&gt; &lt;body&gt; &lt;div id="toolbar"&gt; &lt;ul id="primaryNav"&gt; &lt;li&gt; &lt;a class="toolbarLink" id="domeLink" href="http://uiowa.edu"&gt;&lt;img id="dome" src="dome.jpg"&gt;&lt;/img&gt;&lt;/a&gt; &lt;ul class="subnav" id="subnav"&gt; &lt;li&gt;&lt;a class="menuLink" href="http://uiowa.edu"&gt;Iowa&lt;/a&gt;&lt;/li&gt;&lt;br /&gt; &lt;li&gt;&lt;a class="menuLink" href="http://clas.uiowa.edu"&gt;CLAS&lt;/a&gt;&lt;/li&gt;&lt;br /&gt; &lt;li&gt;&lt;a class="menuLink" href="http://magidcenter.uiowa.edu"&gt;Magid Center&lt;/a&gt;&lt;/li&gt;&lt;br /&gt; &lt;/ul&gt; &lt;/li&gt; &lt;span id="toolbarText"&gt; &lt;li&gt;&lt;a class="toolbarLink" href="http://inklitmag.uiowa.edu"&gt;Home&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;/li&gt; &lt;li&gt;&lt;a class="toolbarLink" href="http://inklitmag.uiowa.edu/about"&gt;About&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;/li&gt; &lt;li&gt;&lt;a class="toolbarLink" href="https://inklitmag.submittable.com/submit"&gt;Submit&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;/li&gt; &lt;li&gt;&lt;a class="toolbarLink" href="http://inklitmag.tumblr.com"&gt;Blink&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;/li&gt; &lt;li&gt;&lt;a class="toolbarLink" href="http://inklitmag.uiowa.edu/previousissues"&gt;Previous Issues&lt;/a&gt;&lt;/li&gt; &lt;/span&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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