Drop down menu hover is working but not able to click - html

Drop down menu hover is working but not able to click.
Tried a lot of times, just couldn't sort out the problem..
My html code: (looks like it does not have have any error)
HTML:
<ul id="menu-bar">
<li class='active'><span>Home</span></li>
<li><span>About Us</span></li>
<li class='has-sub'><a href='#'><span>1</span></a>
<ul>
<li class='has-sub'><a href='#'><span>1-1</span></a>
<ul>
<li><a href='#'><span>1-1-1</span></a></li>
<li class='last'><a href='#'><span>1-1-2</span></a></li>
</ul>
</li>
<li class='has-sub'><a href='#'><span>1-2</span></a>
<ul>
<li><span>1-2-1</span></li>
<li><span>1-2-2</span></li>
<li><span>1-2-3</span></li>
<li><span>1-2-4</span></li>
<li><span>1-2-5</span></li>
<li class='last'><a href='#'><span>1-2-6</span></a></li>
</ul>
</li>
<li class="has-sub"><span>1-3</span>
<ul>
<li><span>1-3-1</span></li>
<li><span>1-3-2</span></li>
<li><span>1-3-3</span></li>
<li class='last'><span>1-3-4</span></li>
</ul>
</li>
<li class="has-sub"><span>1-4</span>
<ul>
<li><span>1-4-1</span></li>
<li class='last'><span>1-4-2</span></li>
</ul>
</li>
</ul>
</li>
<li><span>1-4</span></li>
<li><a href='#'><span>1-5</span></a></li>
<li class='last'><a href='#'><span>1-6</span></a></li>
</ul>
CSS:
#menu-bar {
width: 95%;
margin: 0px 0px 0px 0px;
padding: 6px 6px 4px 6px;
height: 45px;
line-height: 100%;
border-radius: 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
box-shadow: 2px 2px 2px #6E052E;
-webkit-box-shadow: 2px 2px 2px #6E052E;
-moz-box-shadow: 2px 2px 2px #6E052E;
background: #FF0A6C;
border: solid 1px #C40853;
position: relative;
z-index: 999;
}
#menu-bar li {
margin: 0px 0px 6px 0px;
padding: 0px 6px 0px 6px;
float: left;
position: relative;
list-style: none;
}
#menu-bar li ul {
display: none;
}
#menu-bar a {
font-weight: bold;
font-family: 'comic sans ms';
font-style: normal;
font-size: 25px;
color: #FFBFDD;
text-decoration: none;
display: block;
padding: 6px 20px 6px 20px;
margin: 0;
margin-bottom: 4px;
border-radius: 4px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
text-shadow: 2px 2px 2px #6E052E;
}
#menu-bar li ul li a {
margin: 0;
}
#menu-bar .active a,#menu-bar li:hover>a {
background: #FFD4EC;
color: #FF0088;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
text-shadow: 2px 2px 2px #000000;
}
#menu-bar ul li:hover a,#menu-bar li:hover li a {
background: none;
border: none;
color: #666;
-box-shadow: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
}
#menu-bar ul a:hover {
background: #FF0088 !important;
color: #FFC9F1 !important;
border-radius: 0;
-webkit-border-radius: 0;
-moz-border-radius: 0;
text-shadow: 2px 2px 1px #FFFFFF;
}
#menu-bar ul {
background: #FFD4EC;
display: none;
margin: 0;
padding: 0;
width: 190px;
position: absolute;
top: 45px;
left: 0;
border: solid 1px #FF8CB6;
border-radius: 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-webkit-box-shadow: 2px 2px 2px #6E052E;
-moz-box-shadow: 2px 2px 2px #6E052E;
box-shadow: 2px 2px 2px #6E052E;
}
#menu-bar li:hover>ul {
display: block;
}
#menu-bar ul li {
float: none;
margin: 0;
padding: 0;
}
#menu-bar ul a {
padding: 10px 0px 10px 15px;
color: #FF0088 !important;
font-size: 12px;
font-style: normal;
font-family: arial;
font-weight: normal;
text-shadow: 0px 0px 0px #FFFFFF;
}
#menu-bar ul li:first-child>a {
border-top-left-radius: 3px;
-webkit-border-top-left-radius: 3px;
-moz-border-radius-topleft: 3px;
border-top-right-radius: 3px;
-webkit-border-top-right-radius: 3px;
-moz-border-radius-topright: 3px;
}
#menu-bar ul li:last-child>a {
border-bottom-left-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
-moz-border-radius-bottomleft: 3px;
border-bottom-right-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
-moz-border-radius-bottomright: 3px;
}
#menu-bar:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
#menu-bar {
display: inline-block;
}
html[xmlns] #menu-bar {
display: block;
}
* html #menu-bar {
height: 1%;
}

You could add this for your sub sub menu.
#menu-bar li li:hover > ul {
left: 190px;
top: 0;
}
And place your submenu higher so you can acces it.
#menu-bar ul {
background: #ffd4ec;
display: none;
margin: 0;
padding: 0;
width: 190px;
position: absolute;
top: 28px;
left: 0;
border: solid 1px #ff8cb6;
border-radius: 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-webkit-box-shadow: 2px 2px 2px #6e052e;
-moz-box-shadow: 2px 2px 2px #6e052e;
box-shadow: 2px 2px 2px #6e052e;
}
See http://jsbin.com/fixaperunone/1/edit

Related

html menu change drop down text color only

I'm trying to change the color of the text on only the part of the menu that drops down. My problem when changing the font color is it changes the font color for the whole menu rather than just the drop down part of the navigation.
i apologize in advance its been years since i worked with html and i'm very rusty.
example here
The code here:
<div style="text-align: left;">
<style>
#homelink {
background-image: url(http://i946.photobucket.com/albums/ad301/campbellmichelle41109/sims3_logo_ver931034_zpsmnyi2tcj.png);
background-repeat: no-repeat;
background-color: transparent;
display: block;
width: 126px;
height: 140px;
}
#homelink {
position: relative;
padding: 0;
margin: -97px;
}
#mbt-menu, #mbt-menu ul {
margin: -15px;
padding: 17px;
list-style: none;
}
#mbt-menu {
width: 100%;
margin: 0px auto;
javascript:void(0)
background-image: url("http://i946.photobucket.com/albums/ad301/campbellmichelle41109/navbg1.1_zps86kuvvkj.png") repeat-x;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
}
#mbt-menu:before,
#mbt-menu:after {
content: "";
display: table;
}
#mbt-menu:after {
clear: both;
}
#mbt-menu {
zoom:1;
}
#mbt-menu li {
float: left;
border-right: 1px solid #328ad4;
-moz-box-shadow: 1px 0 0 #469ee8;
-webkit-box-shadow: 1px 0 0 #469ee8;
box-shadow: 1px 0 0 #469ee8;
position: relative;
}
#mbt-menu a {
float: left;
padding: 10px 25px;
color: #FFFFFF;
text-transform: uppercase;
font: bold 12px Arial, Helvetica;
text-decoration: none;
text-shadow: 0 1px 0 #000;
}
#mbt-menu li:hover > a {
color: #FFFFFF;
}
*html #mbt-menu li a:hover { /* IE6 only */
color: #000000;
}
#mbt-menu ul {
margin: 20px 0 0 0;
_margin: 0; /*IE6 only*/
opaciaty: 0;
visibility: hidden;
position: absolute;
top: 46px;
left: 0;
z-index: 9999;
background: #ffffff;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
-webkit-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
-ms-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
}
#mbt-menu li:hover > ul {
opacity: 1;
visibility: visible;
margin: 0;
}
#mbt-menu ul ul {
top: 0;
left: 150px;
margin: 0 0 0 20px;
_margin: 0; /*IE6 only*/
-moz-box-shadow: -1px 0 0 rgba(255,255,255,.3);
-webkit-box-shadow: -1px 0 0 rgba(255,255,255,.3);
box-shadow: -1px 0 0 rgba(255,255,255,.3);
}
#mbt-menu ul li {
float: none;
display: block;
border: 0;
_line-height: 0; /*IE6 only*/
-moz-box-shadow: 0 1px 0 #227ac4, 0 2px 0 #666;
-webkit-box-shadow: 0 1px 0 #227ac4, 0 2px 0 #666;
box-shadow: 0 1px 0 #227ac4, 0 2px 0 #666;
}
#mbt-menu ul li:last-child {
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}
#mbt-menu ul a {
padding: 7px;
width: 130px;
_height: 9px; /*IE6 only*/
display: block;
white-space: nowrap;
float: none;
text-transform: none;
}
#mbt-menu ul a{
font-size: 12px;
font-color: #000000;
}
#mbt-menu ul a:hover {
background-color: #ffffff;
}
#mbt-menu ul li:first-child > a {
-moz-border-radius: 3px 3px 0 0;
-webkit-border-radius: 3px 3px 0 0;
border-radius: 3px 3px 0 0;
}
#mbt-menu ul li:first-child > a:after {
content: '';
position: absolute;
left: 40px;
top: -6px;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-bottom: 6px solid #469ee8;
}
#mbt-menu ul ul li:first-child a:after {
left: -6px;
top: 50%;
margin-top: -6px;
border-left: 0;
border-bottom: 6px solid transparent;
border-top: 6px solid transparent;
border-right: 6px solid #3b3b3b;
}
#mbt-menu ul li:first-child a:hover:after {
border-bottom-color: #04acec;
}
#mbt-menu ul ul li:first-child a:hover:after {
border-right-color: #0299d3;
border-bottom-color: transparent;
}
#mbt-menu ul li:last-child > a {
-moz-border-radius: 0 0 3px 3px;
-webkit-border-radius: 0 0 3px 3px;
border-radius: 0 0 3px 3px;
}
</style>
<div align=center>
<ul id="mbt-menu">
<li><a id=homelink href="http://sims3addictresource.blogspot.com/"></a></li>
<li>
Simology
<ul>
<li>Needs </li>
<li>Skills</li>
<li>Traits</li>
<li>Moodlets</li>
<li>Lifetime Wishes</li>
<li>Life Time Rewards</li>
<li>Death </li>
<li>Ghosts</li>
</ul>
</li>
<li>
Expansion Guide
<ul>
<li>Ambitions</li>
<li>Generations</li>
<li>Pets</li>
<li>Late Night</li>
<li>Supernatural</li>
<li>World Adventures</li>
<li>University Life</li>
</ul>
</li>
<li>
Towns
<ul>
<li>Sunset Valley</li>
<li>Monte Vista</li>
<li>Hidden Springs</li>
<li>Dragon Valley</li>
<li>Roaring Heights</li>
</ul>
</li>
<li>
Free Downloads
<ul>
<li> Custom Sims </li>
<li>Sliders</li>
</ul>
</li>
<li>About</li>
<li>Contact</li>
</ul>
</div>
</div>
Try this
#mbt-menu li ul li > a {
color: // your colour here;
}
#mbt-menu a {
float: left;
padding: 10px 25px;
color: #FFFFFF;
text-transform: uppercase;
font: bold 12px Arial, Helvetica;
text-decoration: none;
text-shadow: 0 1px 0 #000;
}
This part of the css is the one that is causing the issue. You are setting any link that is part of the menu to be white, even the ones that are not the submenu.
You can instead move that color: #ffffff out, and do
#mbt-menu li ul a{
color: #FFFFFF;
}
This finds all the a tags that are part of the menu that are under a sublist and sets the color to white.
Here is a way to fix that
#mbt-menu ul a {
color:coral; //change any color here
}
DEMO

Internet Explorer (pre 11) shows outline around menu bar links

I know what you're thinking - who cares about IE anyway? Well, my client does. The problem is that a dotted outline appears around the menu bar links when you click on one. I tried it in IE 11 and there's no problem. So it's only a problem for people using older versions of IE. Also fine in Chrome, Firefox, and any other relevant browser, but I figured I'd ask anyway.
The website is precisionimagerycorp.com
The HTML
<ul id="menu-bar">
<li>Home |</li>
<li> About |</li>
<li>Blog |</li>
<li>Contact |</li>
<li>Client Login</li> <br /><br />
<li><a href="register.php">
The CSS
a:link{
color:#003;
text-decoration:none;
}
a:visited{
color:#003;
text-decoration:none;
}
#menu-bar {
margin-left: 0px;
margin-top: 0px;
padding: 25px 0px 0px 115px;
height: 34px;
line-height: 100%;
/*border-radius: 24px;
-webkit-border-radius: 24px;
-moz-border-radius: 24px;
box-shadow: 2px 2px 3px #666666;
-webkit-box-shadow: 2px 2px 3px #666666;
-moz-box-shadow: 2px 2px 3px #666666;
background: #8B8B8B;
filter:alpha(opacity:0);
background: -webkit-gradient(linear, left top, left bottom, from(#FFF), to(#000));
background: -moz-linear-gradient(top, #FFF, #000);
border: none;*/
}
#menu-bar li {
margin: 0px 0px 0px 0px;
padding: 0px 0px 6px 0px;
float: left;
position: relative;
list-style: none;
}
#menu-bar a {
font-weight: bold;
font-family: arial;
font-style: normal;
font-size: 14px;
color: #FFFFFF;
text-decoration: none;
display: block;
padding: 8px 20px 8px 0px; /*The value on the far right determines menu bar placement */
margin: 0;
border-radius: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
text-shadow: 2px 2px 3px #000000;
}
/*#menu-bar .current a, #menu-bar li:hover > a {
background: #0399D4;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EBEBEB, endColorstr=#A1A1A1);
background: -webkit-gradient(linear, left top, left bottom, from(#EBEBEB), to(#A1A1A1));
background: -moz-linear-gradient(top, #EBEBEB, #A1A1A1);
color: #570058;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
text-shadow: 2px 2px 3px #FFFFFF;*/
}
#menu-bar .current a, #menu-bar li:hover > a {
}
#menu-bar ul li:hover a, #menu-bar li:hover li a {
background: none;
border: none;
color: #666;
-box-shadow: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
}
#menu-bar ul a:hover {
background: #0399D4 !important;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#04ACEC, endColorstr=#0186BA);
background: -webkit-gradient(linear, left top, left bottom, from(#04ACEC), to(#0186BA)) `enter code here`!important;
background: -moz-linear-gradient(top, #04ACEC, #0186BA) !important;
color: #FFFFFF !important;
border-radius: 0;
-webkit-border-radius: 0;
-moz-border-radius: 0;
text-shadow: 2px 2px 2px #FFFFFF;
}
#menu-bar ul {
background: #DDDDDD;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#FFFFFF, endColorstr=#CFCFCF);
background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#CFCFCF));
background: -moz-linear-gradient(top, #FFFFFF, #CFCFCF);
display: none;
margin: 0;
padding: 0;
width: 180px;
position: absolute;
top: 30px;
left: 0;
border: 0;
border-radius: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
-webkit-box-shadow: 2px 2px 3px #222222;
-moz-box-shadow: 2px 2px 3px #222222;
box-shadow: 2px 2px 3px #222222;
}
#menu-bar li:hover > ul {
display: block;
}
#menu-bar ul li {
float: none;
margin: 0;
padding: 0;
}
#menu-bar ul a {
padding:10px 0px 10px 15px;
color:#424242 !important;
font-size:12px;
font-style:normal;
font-family:arial;
font-weight: normal;
text-shadow: 2px 2px 3px #FFFFFF;
}
#menu-bar ul li:first-child > a {
border-top-left-radius: 10px;
-webkit-border-top-left-radius: 10px;
-moz-border-radius-topleft: 10px;
border-top-right-radius: 10px;
-webkit-border-top-right-radius: 10px;
-moz-border-radius-topright: 10px;
}
#menu-bar ul li:last-child > a {
border-bottom-left-radius: 10px;
-webkit-border-bottom-left-radius: 10px;
-moz-border-radius-bottomleft: 10px;
border-bottom-right-radius: 10px;
-webkit-border-bottom-right-radius: 10px;
-moz-border-radius-bottomright: 10px;
}
#menu-bar:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
#menu-bar {
display: inline-block;
}
html[xmlns] #menu-bar {
display: block;
}
* html #menu-bar {
height: 1%;
}

How do I hide the dividers in my navigation on hover?

I'm trying to make the grey borders on the left and right of the main navigation items go away when I hover over them, like maybe be covered by the hover effect, right now they in their own list item, is there a easy way to do this? Thanks!
This is my CSS..
.divider {
background-color: #a8a8a8;
background-repeat: no-repeat;
height: 15px;
top: 15px;
width: 1px;
}
#cssmainmenu,
#cssmainmenu > ul {
font-family: 'Open Sans', sans-serif;
font-weight: 700;
color: #333333;
height: 29px;
}
#cssmainmenu:after,
#cssmainmenu > ul:after {
clear: both;
}
#cssmainmenu > ul {
margin: 0;
padding: 0;
position: relative;
}
#cssmainmenu > ul li {
margin: 0;
padding: 0;
list-style: none;
}
#cssmainmenu > ul > li {
float: left;
position: relative;
}
#cssmainmenu > ul > li > a {
padding: 8px 10px 8px;
display: block;
color: #4a4a4a;
font-size: 14px;
text-decoration: none;
text-transform: uppercase;
border-top: 5px solid transparent;
border-right: 1px solid transparent;
border-left: 1px solid transparent;
}
#cssmainmenu > ul > li.has-sub:hover > a {
background-color: #f5f5f5;
border-color: #70bf47 #cccccc transparent;
border-width: 5px 1px 1px;
}
#cssmainmenu > ul > li:hover > a {
background-color: #f5f5f5;
border-color: #70bf47 #cccccc #cccccc;
border-width: 5px 1px 1px;
}
/* Childs */
#cssmainmenu > ul ul {
opacity: 0;
font-weight: 400;
background-color: #f5f5f5;
visibility: hidden;
position: absolute;
margin: 0;
padding: 0;
z-index: -1;
border-right: 1px solid #cccccc;
border-left: 1px solid #cccccc;
border-bottom: 1px solid #cccccc;
-webkit-border-bottom-right-radius: 10px;
-webkit-border-bottom-left-radius: 10px;
-moz-border-radius-bottomright: 10px;
-moz-border-radius-bottomleft: 10px;
border-bottom-right-radius: 10px;
border-bottom-left-radius: 10px;
border-top-right-radius: 0;
border-top-left-radius: 0;
}
#cssmainmenu > ul li:hover ul {
opacity: 0.950;
visibility: visible;
margin: 0;
color: #000;
z-index: 2;
left: 0;
-webkit-box-shadow: 1px 1px 3px 0px rgba(0,0,0,0.2);
-moz-box-shadow: 1px 1px 3px 0px rgba(0,0,0,0.2);
box-shadow: 1px 1px 3px 0px rgba(0,0,0,0.2);
}
#cssmainmenu > ul ul:before {
content: '';
position: absolute;
top: -10px;
width: 100%;
height: 20px;
background: transparent;
}
#cssmainmenu > ul ul li a {
padding: 12px 12px;
display: block;
color: #4a4a4a;
font-size: 13px;
text-decoration: none;
width: 150px;
border-top: 1px solid #e9e9e9;
-webkit-box-shadow: inset 1px 1px 0px 0px rgba(255,255,255,1);
-moz-box-shadow: inset 1px 1px 0px 0px rgba(255,255,255,1);
box-shadow: inset 1px 1px 0px 0px rgba(255,255,255,1); -webkit-border-bottom-right-radius: 10px;
-webkit-border-bottom-left-radius: 10px;
-moz-border-radius-bottomright: 10px;
-moz-border-radius-bottomleft: 10px;
border-bottom-right-radius: 10px;
border-bottom-left-radius: 10px;
border-top-right-radius: 0;
border-top-left-radius: 0;
}
#cssmainmenu > ul ul li a:hover {
background-color: #eaeaea;
-webkit-box-shadow: inset 1px 1px 0px 0px rgba(255,255,255,1);
-moz-box-shadow: inset 1px 1px 0px 0px rgba(255,255,255,1);
box-shadow: inset 1px 1px 0px 0px rgba(255,255,255,1);
-webkit-border-bottom-right-radius: 0px;
-webkit-border-bottom-left-radius: 0px;
-moz-border-radius-bottomright: 0px;
-moz-border-radius-bottomleft: 0px;
border-bottom-right-radius: 0px;
border-bottom-left-radius: 0px;
border-top-right-radius: 0;
border-top-left-radius: 0;
}
#cssmainmenu > ul ul li.last a:hover {
background-color: #eaeaea;
-webkit-box-shadow: inset 1px 1px 0px 0px rgba(255,255,255,1);
-moz-box-shadow: inset 1px 1px 0px 0px rgba(255,255,255,1);
box-shadow: inset 1px 1px 0px 0px rgba(255,255,255,1);
-webkit-border-bottom-right-radius: 10px;
-webkit-border-bottom-left-radius: 10px;
-moz-border-radius-bottomright: 10px;
-moz-border-radius-bottomleft: 10px;
border-bottom-right-radius: 10px;
border-bottom-left-radius: 10px;
border-top-right-radius: 0;
border-top-left-radius: 0;
}
My HTML
<div id='cssmainmenu'>
<ul>
<li class='active'><a href='salestool.aspx'><span>Get Started</span></a></li>
<li class='divider'></li>
<li class='has-sub'><a href='learn.aspx'><span>How it Works</span></a>
<li class='divider'></li>
<ul>z
<li><a href='learn2.aspx'><span>How it works</span></a></li>
<li><a href='learn3.aspx'><span>How you save</span></a></li>
<li><a href='utilities2.aspx'><span>Why CEC</span></a></li>
<li><a href='finance.aspx'><span>Financing</span></a></li>
<li><a href='referral.aspx'><span>SolarPerks</span></a></li>
<li><a href='learn5.aspx'><span>RemoteMeter</span></a></li>
<li><a href='utilities.aspx'><span>Utilites</span></a></li>
<li class='last'><a href='faq.aspx'><span>FAQ</span></a></li>
</ul>
</li>
<li class='has-sub'><a href='aboutUS.aspx'><span>About CEC</span></a>
<li class='divider'></li>
<ul>
<li><a href='aboutUS.aspx'><span>About CEC</span></a></li>
<li><a href='mission.aspx'><span>Our Mission</span></a></li>
<li><a href='communitysolarprojects.aspx'><span>The Projects</span></a></li>
<li><a href='Testimonials.aspx'><span>Community</span></a></li>
<li><a href='cecteam.aspx'><span>CEC Team</span></a></li>
<li><a href='supporters.aspx'><span>Supporters</span></a></li>
<li><a href='jobs.aspx'><span>Careers</span></a></li>
<li class='last'><a href='news.aspx'><span>News/Press</span></a></li>
</ul>
</li>
<li class='divider'></li>
<li><a href='https://www.myowncleanenergy.com/'><span>My Clean Energy</span></a></li>
<li class='divider'></li>
<li class='last'><a href='contact.aspx'><span>Contact Us</span></a></li>
</ul>
</div>
add this to your css:
#cssmainmenu > ul li:hover + li.divider{display:none}
but it's better to change the color of the line:
#cssmainmenu > ul li:hover + li.divider{background-color:transparent;}
Luiggi

HTML/CSS menu bar dis miss it's shape when resizing window

I made a menubar like picture below , Contact item is in the left of Company item , when I resize the browser Contact goes down , what is the problem?
here is picture http://oi61.tinypic.com/64h01g.jpg
HTML
<div id="header"><h1><center>Online Shopping</center></h1></div>
<div id='cssmenu'>
<ul>
<li class='active'><a href='index.html'><span>Home</span></a></li>
<li class='has-sub'><a href='#'><span>Products</span></a>
<ul>
<li><a href='#'><span>Widgets</span></a></li>
<li><a href='#'><span>Menus</span></a></li>
<li class='last'><a href='#'><span>Products</span></a></li>
</ul>
</li>
<li class='has-sub'><a href='#'><span>Company</span></a>
<ul>
<li><a href='#'><span>About</span></a></li>
<li class='last'><a href='#'><span>Location</span></a></li>
</ul>
</li>
<li class='last'><a href='#'><span>Contact</span></a></li>
</ul>
</div>
css
body{
background:#EBEBEB;
}
#header{
padding:0;
margin:0;
height:100px;
background:#6355BD;
}
#cssmenu ul {
margin: 0;
padding: 7px 6px 0;
background: #7d7d7d url(images/overlay.png) repeat-x 0 -110px;
line-height: 100%;
border-radius: 1em;
font: normal 0.5333333333333333em Arial, Helvetica, sans-serif;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
width: auto;
}
#cssmenu li {
margin: 0 5px;
padding: 0 0 8px;
float: left;
position: relative;
list-style: none;
}
#cssmenu a,
#cssmenu a:link {
font-weight: bold;
font-size: 13px;
color: #e7e5e5;
text-decoration: none;
display: block;
padding: 8px 20px;
margin: 0;
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}
#cssmenu a:hover {
background: #000;
color: #fff;
}
#cssmenu .active a,
#cssmenu li:hover > a {
background: #979797 url(images/overlay.png) repeat-x 0 -40px;
background: #666666 url(images/overlay.png) repeat-x 0 -40px;
color: #444;
border-top: solid 1px #f8f8f8;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
text-shadow: 0 1px 0 #ffffff;
}
#cssmenu ul ul li:hover a,
#cssmenu li:hover li a {
background: none;
border: none;
color: #666;
-webkit-box-shadow: none;
-moz-box-shadow: none;
}
#cssmenu ul ul a:hover {
background: #7d7d7d url(images/overlay.png) repeat-x 0 -100px !important;
color: #fff !important;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
#cssmenu li:hover > ul {
display: block;
}
#cssmenu ul ul {
z-index: 1000;
display: none;
margin: 0;
padding: 0;
width: 185px;
position: absolute;
top: 40px;
left: 0;
background: #ffffff url(images/overlay.png) repeat-x 0 0;
border: solid 1px #b4b4b4;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
#cssmenu ul ul li {
float: none;
margin: 0;
padding: 3px;
}
#cssmenu ul ul a,
#cssmenu ul ul a:link {
font-weight: normal;
font-size: 12px;
}
#cssmenu ul:after {
content: '.';
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
* html #cssmenu ul {
height: 1%;
}
I dont think there is a problem, perfectly normal behavior.
There is not enough space in the container, and the last element goes on second line.
If you dont want this to happen, put a min-width:400px; to #cssmenu ul. But since you have couple of ul's inside #cssmenu, better put separate class on the top one.

HTML/CSS: Content growing larger than 960 grid

I am using the 960 Grid System and the container_16 format. For some reason one of my containers is slightly bigger than the rest. This is killing my feng shui.
I have highlighted the error here:
A live preview can be seen at http://rcnhca.org.uk/sites/first_steps/, Notice how the breadcrumbs at the very top go further right than any other element by a few pixels?
The guilty element has the following the markup:
<div class="container_16">
<div class="grid_16" id="breadcrumbs">
<ul id="parent" class="grid_15 omega">
<li>Select a topic<ul class="child"><li>Getting started</li><li>Communication</li><li>Health, Safety and Security</li><li>Personal and people development </li><li>Quality</li><li>Equality, diversity and rights </li><li>Clinical skills</li><li>Additional material</li></ul></li> </ul>
</div>
<div id="supplements" class="grid_16">
<div class="left">
<img src="http://rcnhca.org.uk/sites/first_steps/wp-content/themes/megaamazing/library/images/book-icon.png" alt="book icon">View competencies checklist
</div>
<div class="right">
<img src="http://rcnhca.org.uk/sites/first_steps/wp-content/themes/megaamazing/library/images/rcn-icon.png" alt="rcn icon">Join the RCN
Reasons to joins
</div>
</div>
</div>
and it's CSS:
#breadcrumbs {
display: block;
position: relative;
z-index: 4;
height: 39px;
padding-bottom: 3px;
background: #ffffff;
border: 0px solid;
border-left: #3a90a7 2px solid;
border-right: #3a90a7 2px solid;
border-bottom: #3a90a7 2px solid;
-webkit-border-bottom-left-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
-moz-border-radius-bottomleft: 5px;
-moz-border-radius-bottomright: 5px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
}
#breadcrumbs ul {
list-style: none;
list-style-image: none;
margin: 0;
}
#breadcrumbs #home{
display: block;
height: 39px;
width: 60px;
float: left;
background-image: url(library/images/home_icon.png);
background-repeat: no-repeat;
background-position: 19px center;
text-indent: -999em;
}
#breadcrumbs ul#parent {
display: block;
height: 39px;
float: right;
right: 3px;
position: relative;
background: #f38630;
-webkit-box-shadow: inset 0px -2px 0px 0px #cf7229;
-moz-box-shadow: inset 0px -2px 0px 0px #cf7229;
box-shadow: inset 0px -2px 0px 0px #cf7229;
-webkit-border-bottom-left-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
-moz-border-radius-bottomleft: 5px;
-moz-border-radius-bottomright: 5px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
}
#breadcrumbs ul#parent li {
position: relative;
height: 39px;
float: left;
min-width: 1px; /* required to fix Opera bug */
padding: 0 47px 0 15px;
background-image: url(library/images/breadcrumb_seperator.png);
background-repeat: no-repeat;
background-position: right;
line-height: 39px;
zoom: 1;
}
#breadcrumbs ul#parent li a {
display: block;
height: 42px;
position: relative;
font-size: 15px;
font-weight:900;
color: #ffffff;
text-decoration: none;
text-shadow: 0px 2px 0px #cf7229;
}
#breadcrumbs ul li a:visited {
color: #ffffff;
}
#breadcrumbs ul#parent li:first-child ul {
left: -5px;
}
#breadcrumbs ul#parent li ul {
position: absolute;
z-index: 9998;
left: -28px;
top: 42px;
background: #ffffff;
border-left: #3a90a7 2px solid;
border-right: #3a90a7 2px solid;
border-bottom: #3a90a7 2px solid;
-webkit-border-bottom-left-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
-moz-border-radius-bottomleft: 5px;
-moz-border-radius-bottomright: 5px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
padding: 0 3px 0 3px;
list-style-position: outside;
min-width: 200px;
width: auto;
-webkit-box-shadow: 0px 6px 6px -6px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0px 6px 6px -6px rgba(0, 0, 0, 0.5);
box-shadow: 0px 6px 6px -6px rgba(0, 0, 0, 0.5);
}
.js #breadcrumbs ul#parent li ul {
display:none;
}
.no-js #breadcrumbs ul#parent li ul {
left: -999em;
}
#breadcrumbs ul#parent li ul li {
float: none;
display: block;
position: relative;
height: 26px;
margin-bottom: 3px;
padding: 0 15px;
background-image: url(library/images/arrow-icon.png);
background-position: -25px 50%;
background-repeat: no-repeat;
background-color: #738793;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
line-height: 26px;
white-space: nowrap;
zoom: 1;
}
#breadcrumbs ul#parent li ul li a{
display: block;
width: auto;
color: #ffffff;
text-decoration: none;
text-shadow: none;
font-weight: 100;
}
#breadcrumbs ul#parent li ul li.active, #breadcrumbs ul#parent li ul li:hover{
background-color: #3393b5;
}
#breadcrumbs ul#parent li ul li.active, .no-js #breadcrumbs ul#parent li ul li:hover{
background-position: 0px 50%;
text-indent: 10px;
}
.no-js #breadcrumbs ul#parent li:hover ul, .no-js #breadcrumbs ul#parent li:focus ul {
left: -5px;
}
Can anyone help me whip it into shape?
It's because you have given #breadcrumbs an extra 4px width with the border.
border-left: #3a90a7 2px solid;
border-right: #3a90a7 2px solid;`.
The grid_16 is actually 944px instead of the intended 940px, hence the discrepancy.
You'll need to readjust your markup though.
<div class="grid_16">
<div id="breadcrumbs">
<!-- etc -->
</div>
</div>
You will also have to resize your home button. Give it a class of grid_1 alpha and remove the width:54px from your CSS. should be good to go