Hello, I am having menu problems with ALL of my browsers. There is a line that separates the top-level menu item from the pull-down menu items. It also has a space between the top-level and pull-down menu items.
I have put DAYS worth of effort on this issue (even though I copied and then modified a free horizontal menu from the internet). ANY HELP would be greatly apprecicated!
XHTML:
------------------------------------------------------
div id="menu">
<ul>
<li><h2>home </h2><a class="toplevel" href="index.html" alt="homepage"></a></li>
</ul>
<ul>
<li><h2>profile</h2> <a class="toplevel" href="profile.html" title="profile"></a>
<ul>
<li><a href="portfolio.html" title="portfolio">portfolio</a></li>
</ul>
</li>
</ul>
<ul>
<li><h2>services</h2> <a class="toplevel" href="services.html" title="services"></a>
<ul>
<li><a href="marketing.html" title="marketing">marketing</a></li>
<li><a href="advertising.html" title="advertising">advertising</a></li>
</ul>
</li>
</ul>
<ul>
<li><h2>resource center</h2> <a class="toplevel" href="rescent.html" title="resource center"></a>
<ul>
<li><a href="mktgnews.html" title="latest marketing news">latest marketing news</a></li>
<li><a href="mktgres.html" title="marketing research">marketing research</a> </li>
<li><a href="pricing.html" title="pricing">pricing</a> </li>
<li><a href="tools.html" title="marketing tools">marketing tools</a> </li>
</ul>
</li>
</ul>
<ul>
<li><h2>contact</h2> <a href="contact.html" title="contact"></a></li>
</ul>
</div>
--------------------------------------------------------
CSS:
--------------------------------------------------------
#menu{
width:70em;
float:left;
text-align: center;
margin-left: +4em;
margin-top: +.20px;
padding: 0 0 0 0;
margin-top: 15px;
margin-left: 55px;
}
#menu a, #menu h2, .toplevel {
font:bold;
display:block;
border-width:1px;
border-style:solid;
border-color:#ccc #888 #555 #bbb;
white-space: nowrap;
font-family: "Calisto MT", Monaco, serif;
font-size: 1.0em;
color: #777777;
}
#menu h2, .toplevel {
color: #838383;
background: #ffffcc;
}
#menu a{
background: #ffffcc;
text-decoration:none;
color: #838383;
background: #ffffcc
}
#menu a, #menu a:visited{
color: #838383;
}
#menu a:hover{
color:#000;
background:#ddd;
}
#menu a:active{
color:#060;
background:#ccc;
}
#menu ul{
list-style:none;
float:left;
width:120px;
padding: 0 0 0 0;
}
#menu li{
position:relative;
}
#menu ul ul {
position:absolute;
z-index:400;
top:auto;
display:none;
}
#menu ul ul ul{
top:0;
left:100%;
}
/* Begin non-anchor hover selectors */
/* Enter the more specific element (div) selector
on non-anchor hovers for IE5.x to comply with the
older version of csshover.htc - V1.21.041022. It
improves IE's performance speed to use the older
file and this method */
div#menu h2:hover{
background: #eee -999px -9999px;
}
div#menu li:hover{
cursorointer;
z-index:100;
}
div#menu li:hover ul ul,
div#menu li li:hover ul ul,
div#menu li li li:hover ul ul,
div#menu li li li li:hover ul ul
{display:none;}
div#menu li:hover ul,
div#menu li li:hover ul,
div#menu li li li:hover ul,
div#menu li li li li:hover ul
{display:block;}
/* End of non-anchor hover selectors */
/* Styling for Expand */
#menu a.x, #menu a.x:visited{
font-weight:bold;
background:#eee;
}
#menu a.x:hover{
color:#a00;
background:#ddd;
}
#menu a.x:active{
color:#060;
background:#ccc;
}
/* End CSS Popout Menu */
I have put DAYS worth of effort on this issue (even though I copied and then modified a free horizontal menu from the internet). ANY HELP would be greatly apprecicated!
XHTML:
------------------------------------------------------
div id="menu">
<ul>
<li><h2>home </h2><a class="toplevel" href="index.html" alt="homepage"></a></li>
</ul>
<ul>
<li><h2>profile</h2> <a class="toplevel" href="profile.html" title="profile"></a>
<ul>
<li><a href="portfolio.html" title="portfolio">portfolio</a></li>
</ul>
</li>
</ul>
<ul>
<li><h2>services</h2> <a class="toplevel" href="services.html" title="services"></a>
<ul>
<li><a href="marketing.html" title="marketing">marketing</a></li>
<li><a href="advertising.html" title="advertising">advertising</a></li>
</ul>
</li>
</ul>
<ul>
<li><h2>resource center</h2> <a class="toplevel" href="rescent.html" title="resource center"></a>
<ul>
<li><a href="mktgnews.html" title="latest marketing news">latest marketing news</a></li>
<li><a href="mktgres.html" title="marketing research">marketing research</a> </li>
<li><a href="pricing.html" title="pricing">pricing</a> </li>
<li><a href="tools.html" title="marketing tools">marketing tools</a> </li>
</ul>
</li>
</ul>
<ul>
<li><h2>contact</h2> <a href="contact.html" title="contact"></a></li>
</ul>
</div>
--------------------------------------------------------
CSS:
--------------------------------------------------------
#menu{
width:70em;
float:left;
text-align: center;
margin-left: +4em;
margin-top: +.20px;
padding: 0 0 0 0;
margin-top: 15px;
margin-left: 55px;
}
#menu a, #menu h2, .toplevel {
font:bold;
display:block;
border-width:1px;
border-style:solid;
border-color:#ccc #888 #555 #bbb;
white-space: nowrap;
font-family: "Calisto MT", Monaco, serif;
font-size: 1.0em;
color: #777777;
}
#menu h2, .toplevel {
color: #838383;
background: #ffffcc;
}
#menu a{
background: #ffffcc;
text-decoration:none;
color: #838383;
background: #ffffcc
}
#menu a, #menu a:visited{
color: #838383;
}
#menu a:hover{
color:#000;
background:#ddd;
}
#menu a:active{
color:#060;
background:#ccc;
}
#menu ul{
list-style:none;
float:left;
width:120px;
padding: 0 0 0 0;
}
#menu li{
position:relative;
}
#menu ul ul {
position:absolute;
z-index:400;
top:auto;
display:none;
}
#menu ul ul ul{
top:0;
left:100%;
}
/* Begin non-anchor hover selectors */
/* Enter the more specific element (div) selector
on non-anchor hovers for IE5.x to comply with the
older version of csshover.htc - V1.21.041022. It
improves IE's performance speed to use the older
file and this method */
div#menu h2:hover{
background: #eee -999px -9999px;
}
div#menu li:hover{
cursorointer;
z-index:100;
}
div#menu li:hover ul ul,
div#menu li li:hover ul ul,
div#menu li li li:hover ul ul,
div#menu li li li li:hover ul ul
{display:none;}
div#menu li:hover ul,
div#menu li li:hover ul,
div#menu li li li:hover ul,
div#menu li li li li:hover ul
{display:block;}
/* End of non-anchor hover selectors */
/* Styling for Expand */
#menu a.x, #menu a.x:visited{
font-weight:bold;
background:#eee;
}
#menu a.x:hover{
color:#a00;
background:#ddd;
}
#menu a.x:active{
color:#060;
background:#ccc;
}
/* End CSS Popout Menu */