General Question

mirza's avatar

CSS Help?

Asked by mirza (5042points) August 30th, 2007

this should work in ie6 but isnt working. SO can you please help.

<!———MENU CSS———>
<style type=“text/css”>
ul.makeMenu, ul.makeMenu ul {
width: 170px; /* sets the size of the menu blocks */
border: 0px solid #000; /* puts a black border around the menu blocks */
background-color: #fff; /* makes the menu blocks mint green – a bg-color MUST be included for IE to work properly! */
padding-left: 0px; /* stops the usual indent from ul */
cursor: default; /* gives an arrow cursor */
margin-left: 0px; /* Opera 7 final’s margin and margin-box model cause problems */
ul.makeMenu li {
list-style-type: none; /* removes the bullet points */
margin: 0px; /* Opera 7 puts large spacings between li elements */
position: relative; /* makes the menu blocks be positioned relative to their parent menu item
the lack of offset makes these appear normal, but it will make a difference
to the absolutely positioned child blocks */
color: #888; /* sets the default font colour to white */
ul.makeMenu li > ul { /* using the > selector prevents many lesser browsers (and IE – see below) hiding child ULs */
display: none; /* hides child menu blocks – one of the most important declarations */
position: absolute; /* make child blocks hover without leaving space for them */
top: 2px; /* position slightly lower than the parent menu item */
left: 80px; /* this must not be more than the width of the parent block, or the mouse will
have to move off the element to move between blocks, and the menu will close */
ul.makeMenu li:hover, ul.makeMenu li.CSStoHighlight {
background-color: #fff; /* gives the active menu items a yellow background */
color: #fff; /* makes the active menu item text black */
ul.makeMenu ul.CSStoShow { /* must not be combined with the next rule or IE gets confused */
display: block; /* specially to go with the className changes in the behaviour file */
ul.makeMenu li:hover > ul { /* one of the most important declarations – the browser must detect hovering over arbitrary elements
the > targets only the child ul, not any child uls of that child ul */
display: block; /* makes the child block visible – one of the most important declarations */
/* and some link styles */
ul.makeMenu li a { color: #fff; display: block; width: 100%; text-decoration: underline; }
ul.makeMenu li a:hover, ul.makeMenu li a.CSStoHighLink { color: #000; }
ul.makeMenu li:hover > a { color: #000; } /* supports links in branch headings – should not be display: block; */
<!—[if gt IE 5.0]><![if lt IE 7]>
<style type=“text/css”>
/* that IE 5+ conditional comment makes this only visible in IE 5+ */
ul.makeMenu li { /* the behaviour to mimic the li:hover rules in IE 5+ */
behavior: url( );
ul.makeMenu ul { /* copy of above declaration without the > selector, except left position is wrong */
display: none; position: absolute; top: 2px; left: 78px;

<!——END OF CSS——>

<!—-actual menu setup demo——->
<ul class=“makeMenu”><li><h2>¬ĽArchives</h2> <ul><br /> <li><a href=“”>Fairwell To MySpace</a> </li><li><b><a href=“”>Rejection Hurts</a></b></li><li>

Observing members: 0 Composing members: 0

4 Answers

Wilhelm's avatar

Hello! I’d be happy to help, but I need more information. What exactly are you trying to accomplish here?

mirza's avatar

its for a hover-menu – the archive menu works on firefox at but doesnt work on Internet explorer 6

zacko's avatar

I can’t look right now, but on first glance you might want to try the suckerfish drop down method. Actualy, there is Suckerfish menu 2 out there that I liked and have working in IE 6&7, as well as opera and mozilla based browsers. I don’t have the link on hand but google “son of a suckerfish menu” and see what you get.

felipelavinz's avatar

If you’re trying to accomplish something like suckerfish (drop-down) navigation, you might want to try this jQuery plugin: Superfish: Suckerfish on ‘roids

Answer this question




to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
Knowledge Networking @ Fluther