Note that there are some explanatory texts on larger screens.

plurals
  1. POProblem with a drop-down menu in IE
    text
    copied!<p>I have been struggling with this code for quite a few hours now and I have been unable to fix it. This is my CSS for my horizontal navigation:</p> <pre><code>#topmenu { position: relative; width: 690px; left: 270px; top: 11px; } #nav { padding: 0px; margin: 0px; float: left; } #nav li { float: left; position: relative; list-style: none; margin: 0px; margin-right: 6px; } #nav li ul { display: none; margin: -1em 0 0 -3em; padding: 1em; padding-top: 1.2em; position: absolute; top: 24px; z-index: 500; opacity: 0.96; ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=96)"; filter: alpha(opacity=96); } #nav li:hover ul { display: block; } #nav li ul li { display: block; clear: both; } #nav li ul li a { border-radius: 0px; width: 125px; font-size: 11px; padding-left: 25px; padding-right: 0px; padding-bottom: 5px; } #nav li ul li span { float: left; color: #FFF; font-size: 14px; text-decoration: none; font-weight: bold; display: block; background: #6AC1F3; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 0px; width: 145px; } #nav a { float: left; color: #FFF; font-size: 13px; text-decoration: none; display: block; background: #6AC1F3; padding: 5px 25px 5px 25px; border-top-left-radius: 10px; border-top-right-radius: 10px; -moz-border-top-left-radius: 10px; -moz-border-top-right-radius: 10px; -webkit-top-left-radius: 10px; -webkit-top-right-radius: 10px; } #nav a:hover, #nav a.selected { background-color: #FEA14F; } </code></pre> <p>And this is my HTML code:</p> <pre><code> &lt;div id="topmenu"&gt; &lt;ul id="nav"&gt; &lt;li&gt;&lt;a class="rounded" href="index.html"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a class="rounded" href="about-us.htm"&gt;About Us&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a class="rounded" href="contact.htm"&gt;Contact&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a class="rounded" href="#"&gt;Services&lt;/a&gt; &lt;ul&gt; &lt;li&gt;&lt;span&gt;Manage&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="manage-it-management.htm"&gt;IT Management&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="manage-helpdesk-support.htm"&gt;Helpdesk Support&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="manage-planning-and-consulting.htm"&gt;Planning and Consulting&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;span&gt;Instruct&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="instruct-software-training.htm"&gt;Software Training&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="instruct-custom-curriculum.htm"&gt;Custom Curriculum&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="instruct-social-networking.htm"&gt;Social Networking&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;span&gt;Grow&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="grow-website-design.htm"&gt;Website Design&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="grow-website-optimization.htm"&gt;Website Optimization&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="grow-internet-marketing.htm"&gt;Internet Marketing&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;span&gt;Secure&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="secure-remote-back-up.htm"&gt;Remote Back Up&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="secure-scanning-and-storage.htm"&gt;Scanning and Storage&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="secure-spam-and-virus-protection.htm" class="roundbtm"&gt;Spam and Virus Protection&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;&lt;a class="rounded" href="products.htm"&gt;Products&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a class="rounded" href="real-estate-solutions.htm"&gt;Real Estate Solutions&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>The code works in Firefox, Chrome, but I am unable to make it work for IE. I have created additional rules for IE:</p> <pre><code>body { behavior: url(csshover.htc); } #topmenu { font-size: 100%; } #menu ul li {float: left; width: 100%;} #menu ul li a {height: 1%;} </code></pre> <p>But all the menu does is display the drop-down, but when I try to select an item in the drop-down menu, the menu disappears.</p> <p>What's the issue? </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