Note that there are some explanatory texts on larger screens.

plurals
  1. POHorizontal menu is displayed vertically in Internet Explorer
    primarykey
    data
    text
    <p>Ok so I know there are a few similar questions on here but I can't seem to fix my problem with the solutions I read. I'm making a new website and the menu is displayed horizontally in Chrome and Firefox but it is displayed vertically in older versions of Internet Explorer or in Internet Explorer's compatibility mode. Here are the screenshots to compare:</p> <p>Chrome: <a href="http://imgur.com/ZQVKGya" rel="nofollow">http://imgur.com/ZQVKGya</a></p> <p>Internet Explorer (compatibility mode): <a href="http://imgur.com/Q3z6VzW" rel="nofollow">http://imgur.com/Q3z6VzW</a></p> <p>Not only the menu looks broken, but a few things look misplaced. Fixing the menu would be a good place to start.</p> <p>Here is the HTML code:</p> <pre><code>&lt;div id="menu"&gt; &lt;nav&gt; &lt;ul&gt; &lt;li&gt;Home&lt;/li&gt; &lt;li&gt;Tires &lt;ul&gt; &lt;li&gt;Utility &lt;ul&gt; &lt;li&gt;Gripper&lt;/li&gt; &lt;li&gt;Radical&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;Sport &lt;ul&gt; &lt;li&gt;Race-X&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;Contact &lt;ul&gt; &lt;li&gt;About us&lt;/li&gt; &lt;li&gt;Contact us&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;Dealers &lt;ul&gt; &lt;li&gt;Locate a dealer&lt;/li&gt; &lt;li&gt;Become a dealer&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;Downloads&lt;/li&gt; &lt;/ul&gt; &lt;/nav&gt; &lt;/div&gt; </code></pre> <p>Here's the CSS code:</p> <pre><code>#menu { height: 40px; width: 960px; text-align: center; line-height: 40px; color: #FFF; float: left; -webkit-box-shadow: 0 5px 10px -2px #888; -moz-box-shadow: 0 5px 10px -2px #888; box-shadow: 0 5px 10px -2px #888; border-bottom: 1px solid #000; background: #333; font-family: 'Gill Sans', 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Helvetica, Arial, sans-serif; } nav ul li:hover &gt; ul { display: block; } nav ul { background: #333; background: linear-gradient(top, #000 0%, #4B4B4B 100%); background: -moz-linear-gradient(top, #000 0%, #4B4B4B 100%); background: -webkit-linear-gradient(top, #000 0%, #4B4B4B 100%); -webkit-box-shadow: 0px 0px 9px rgba(0,0,0,0.15); -moz-box-shadow: 0px 0px 9px rgba(0,0,0,0.15); box-shadow: 0px 0px 9px rgba(0,0,0,0.15); padding: 0; margin: 0; list-style: none; position: relative; } nav ul:after { content: ""; clear: both; display: block; } nav ul li { width: 20%; background: #333; -webkit-box-shadow: inset 0 0 1px #000; -moz-box-shadow: inset 0 0 1px #000; box-shadow: inset 0 0 1px #000; float: left; } nav ul li:hover { -webkit-box-shadow: inset 0 0 30px #000; -moz-box-shadow: inset 0 0 30px #000; box-shadow: inset 0 0 30px #000; } nav ul li.active { -webkit-box-shadow: inset 0 0 30px #000; -moz-box-shadow: inset 0 0 30px #000; box-shadow: inset 0 0 30px #000; } nav ul li a { display: block; color: #FFF; text-decoration: none; } nav ul ul { -webkit-box-shadow: 0 0 10px #000; -moz-box-shadow: 0 0 10px #000; box-shadow: 0 0 10px #000; width: 20%; background: #333; padding: 0; position: absolute; display: none; top: 100%; } nav ul ul li { width: 100%; float: none; border-bottom: 1px solid #494949; position: relative; } nav ul ul li:hover { -webkit-box-shadow: inset 0 0 0 #868686; -moz-box-shadow: inset 0 0 0 #868686; box-shadow: inset 0 0 0 #868686; background: #868686; color: #FFF; } nav ul ul li a { line-height: 35px; height: 35px; } nav ul ul li a:hover { background: #868686; } nav ul ul ul { width: 100%; position: absolute; left: 100%; top:0; } </code></pre> <p>Any help would be greatly appreciated!</p>
    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