Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS menu. Works on all browsers except IE
    primarykey
    data
    text
    <p>i am trying to make a CSS menu for my webpage for school. I have been developing my site on a Mac and have got it working just the way i want it. I have tested it in safari, firefox and chrome as well as firefox on windows, all of these work fine, i hover over the links menu and it drops down.</p> <p>css for menu</p> <pre><code>#menu { position:relative; top:-83px; left:60%; font-size:30px; width:250px; } #menu ul { position:absolute; list-style-type:none; background-image:url('../images/linkBG.png'); background-repeat:no-repeat; background-position: 38px 0px; width:250px; } #menu li ul { display:none; list-style-type:none; background-image:url('../images/menuBG.png'); background-repeat:repeat-y; font-size:20px; } #menu a:link {color:rgb(255,0,0);} #menu a:visited {color:rgb(255,255,0);} #menu a:hover {color:rgb(255,0,255)} #menu a:active {color:rgb(255,255,255);} #menu li:hover &gt; ul { display: block; } #menu li ul li { padding-left:0px; padding-top:10px; padding-bottom:10px; } </code></pre> <p>When trying it on IE (ver6 and ver8) the links menu repositions it self (moves up about 50px and overlaps the heading), the background image gets moved across to the right by about 30px, and the menu no longer drops down when the mouse hovers over the text. I have heard of IE being a pain to develop for but this is just stupid. I have seen one solution that involved a bit of script to work around the issue but i cannot use script as this is for an assignment (which will be marked on a windows machine so there are high odds of it hitting IE). Along with the faulty menu is a table that i am centering using <code>margin-left:auto</code> and <code>margin-right:auto</code> once again it works fine in all browsers except IE. Is there any way i can get around this? is there an alternative to hover that will work on all browsers.</p> <p>thanks.</p> <p>html code for menu</p> <pre><code>&lt;div id="menu"&gt; &lt;ul&gt; &lt;li&gt;Links Menu &lt;ul&gt; &lt;li&gt;&lt;a href="#info"&gt;Details&lt;/a&gt;&lt;/li&gt;&lt;!--This may be #details--&gt; &lt;li&gt;&lt;a href="#home_town_float"&gt;Home town&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#course"&gt;My Course&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#listdemo"&gt;Books, Music and Films&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#tabledemo"&gt;Timetable&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#formdemo"&gt;Search&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre>
    singulars
    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.
 

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