hi joel, first of all .. thank you very much for your replay :-)
i changed the css with your solutions but still have problems with the display of the first menu item when hovering over a submenu. unfortunately i am not the big css master, so i do have enormous problems where to fix it. also i dont know where to enter your suggested "#someID" to get work. for a quick view of my problem i prepared 2 "files" my html file and my changed css file. just exchange my html file with your "example.html" file and the CSS with your "superfish.css" to see the problem. if you cant help either it wont help anyway. thank you anyway Erick ### HTML ### <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title></title> <link rel="stylesheet" type="text/css" href="main.css" /> <link rel="stylesheet" type="text/css" href="css/superfish.css" media="screen"> <script type="text/javascript" src="js/jquery-1.2.6.min.js"></script> <script type="text/javascript" src="js/hoverIntent.js"></script> <script type="text/javascript" src="js/superfish.js"></script> <script type="text/javascript"> // initialise plugins jQuery(function(){ jQuery('ul.sf-menu').superfish(); }); </script> </head> <body bgcolor="#FF0000"> <!-- Begin Wrapper --> <div id="wrapper"> <!-- Begin Header --> <div id="header"> </div> <!-- End Header --> <!-- Begin Naviagtion --> <div id="navigation"> <ul class="sf-menu" id="someID"> <li> <a href="#">Home</a> </li> <li class="current"> <a href="#"> Info</a> </li> <li> <a href="#">About us</a> <ul> <li><a href="#aa">History</a></li> <li><a href="#aa">Partner</a></li> </ul> </li> </ul> </div> <!-- End Naviagtion --> <!-- Begin Content --> <div id="content"><br style="clear:left;"> zukkzkuzku <a href="#">CONTENT</a> </div> <!-- End Content --> <!-- Begin Footer --> <div id="footer"> </div> <!-- End Footer --> </div> <!-- End Wrapper --> </body> </html> ###HTML ### ### CSS ### /*** ESSENTIAL STYLES ***/ .sf-menu, .sf-menu * { margin: 0; padding: 0; list-style: none; } .sf-menu { line-height: 1.0; } .sf-menu ul { position: absolute; top: -999em; width: 10em; /* left offset of submenus need to match (see below) */ } .sf-menu ul li { width: 100%; font-weight: bold; } .sf-menu li:hover { visibility: inherit; /* fixes IE7 'sticky bug' */ } .sf-menu li { float: left; position: relative; font-weight: bold; } .sf-menu a { display: block; position: relative; } .sf-menu li:hover ul, .sf-menu li.sfHover ul { left: 0; top: 2.5em; /* match top ul list item height */ z-index: 99; } ul.sf-menu li:hover li ul, ul.sf-menu li.sfHover li ul { top: -999em; } ul.sf-menu li li:hover ul, ul.sf-menu li li.sfHover ul { left: 10em; /* match ul width */ top: 0; } ul.sf-menu li li:hover li ul, ul.sf-menu li li.sfHover li ul { top: -999em; } ul.sf-menu li li li:hover ul, ul.sf-menu li li li.sfHover ul { left: 10em; /* match ul width */ top: 0; } /*** DEMO SKIN ***/ .sf-menu { float: left; margin-bottom: 1em; } .sf-menu a { border-left: 0px solid #fff; border-top: 0px solid #FFF; padding: .75em 1em; text-decoration:none; } .sf-menu a, .sf-menu a:visited { /* visited pseudo selector so IE6 applies text colour*/ color: #FFF; } .sf-menu li { background: #D1001A; } .sf-menu li li { background: #D1001A; } .sf-menu li li li { background: #9AAEDB; } /* FINAL CODE: */ .sf-menu li:hover, .sf-menu li.sfHover, .sf-menu li:hover a, sf-menu li.sfHover a, /* <--- ADDED THESE*/ #someID .sf-menu a:focus, #someID .sf-menu a:hover, #someID .sf-menu a:active { /* <--- ADDED IDs */ background: #FFF; outline: 0; color: #D1001A; } .sf-menu li:hover li a, sf-menu li.sfHover li a { /* <--- ADDED AN EXTRA LI */ color: #FFF; } /*** arrows **/ .sf-menu a.sf-with-ul { padding-right: 2.25em; min-width: 1px; /* trigger IE7 hasLayout so spans position accurately */ } .sf-sub-indicator { position: absolute; display: block; right: .75em; top: 1.05em; /* IE6 only */ width: 10px; height: 10px; text-indent: -999em; overflow: hidden; background: url('../images/arrows-ffffff.png') no-repeat -10px -100px; /* 8-bit indexed alpha png. IE6 gets solid image only */ } a > .sf-sub-indicator { /* give all except IE6 the correct values */ top: .8em; background-position: 0 -100px; /* use translucent arrow for modern browsers*/ } /* apply hovers to modern browsers */ a:focus > .sf-sub-indicator, a:hover > .sf-sub-indicator, a:active > .sf-sub-indicator, li:hover > a > .sf-sub-indicator, li.sfHover > a > .sf-sub-indicator { background-position: -10px -100px; /* arrow hovers for modern browsers*/ } /* point right for anchors in subs */ .sf-menu ul .sf-sub-indicator { background-position: -10px 0; } .sf-menu ul a > .sf-sub-indicator { background-position: 0 0; } /* apply hovers to modern browsers */ .sf-menu ul a:focus > .sf-sub-indicator, .sf-menu ul a:hover > .sf-sub-indicator, .sf-menu ul a:active > .sf-sub-indicator, .sf-menu ul li:hover > a > .sf-sub-indicator, .sf-menu ul li.sfHover > a > .sf-sub-indicator { background-position: -10px 0; /* arrow hovers for modern browsers*/ } /*** shadows for all but IE6 ***/ .sf-shadow ul { background: url('../images/shadow.png') no-repeat bottom right; padding: 0 8px 9px 0; -moz-border-radius-bottomleft: 17px; -moz-border-radius-topright: 17px; -webkit-border-top-right-radius: 17px; -webkit-border-bottom-left-radius: 17px; } .sf-shadow ul.sf-shadow-off { background: transparent; } ### CSS ### On 6 Sep., 04:11, "Joel Birch" <[EMAIL PROTECTED]> wrote: > Hi Erick, > > To reduce the height of the menu, simply reduce the amount of top and > bottom padding on the anchor elements. > > Your text colour problem is a little more complicated to do > cross-browser as the CSS cascade makes things tricky. The declaration > you need to override is this one: > > .sf-menu a, .sf-menu a:visited { /* visited pseudo selector so IE6 > applies text colour*/ > color: #FFF; > > } > > so the first idea would be to add to the selectors for the rule you > use to describe the hover styles, like this: > > .sf-menu li:hover, .sf-menu li.sfHover, > .sf-menu li:hover a, sf-menu li.sfHover a, /* <--- ADDED THESE*/ > .sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active { > background: #FFF; > outline: 0; > color: #D1001A; > > } > > This will override the link's colour, but will probably also affect > links in the nested submenu. This could be avoided by using the > > operator in our new selector, but that wouldn't fix the issue for IE6 > unfortunately. So the next thing to do might be to reset the colour > for deeper nested links like so: > > .sf-menu li:hover li a, sf-menu li.sfHover li a { /* <--- ADDED AN > EXTRA LI */ > color: #FFF; > > } > > Again, we may run into another problem because this new rule might > override the hover styles set above, so the final solution could add > an ID selector to each of the link pseudo styles in order to make sure > they always get priority. Here is the final proposed solution: > > /* FINAL CODE: */ > .sf-menu li:hover, .sf-menu li.sfHover, > .sf-menu li:hover a, sf-menu li.sfHover a, /* <--- ADDED THESE*/ > #someID .sf-menu a:focus, #someID .sf-menu a:hover, #someID .sf-menu > a:active { /* <--- ADDED IDs */ > background: #FFF; > outline: 0; > color: #D1001A;} > > .sf-menu li:hover li a, sf-menu li.sfHover li a { /* <--- ADDED AN > EXTRA LI */ > color: #FFF; > > } > > It's hard to be certain what the answer is without being able to test > the ideas on your menu so I may have overlooked things, but hopefully > this gives you some ideas. > > Joel Birch.