We help IT Professionals succeed at work.

Change menu item background color via css.

Rowby Goren
Rowby Goren asked
on
500 Views
Last Modified: 2012-06-27
Hello
This should be a very basic css solution -- however I can't seem to be able to use firebug to help me figure out how to do it.
Please look at this development site, work in progress:
http://freevanrentals.com/
In the top blue menu bar, click on Fleet   Then click on the drop down item named "15 Passenger Van Rental".
In the drop down, when you hover your mouse over the words "15 Passenger Van Rental" the background behind the words become whitish.   I want the background color to remain the blue (with the white letters).    The blue should be #0F4372.

Any suggestions?

Thanks

Rowby

Comment
Watch Question

Kyle HamiltonData Scientist
Most Valuable Expert 2014

Commented:
which style sheet is it in?

Author

Commented:
Hi kozaiwaniec,

That's what I can't figure out.    However below, I think, is the css that controlsw the various aspects of the menu:  
#ariyui87 .yuimenu {
left:-999em;
top:-999em;
}
#ariyui87 .yuimenubar {
position:static;
}
#ariyui87 .yuimenu .yuimenu, #ariyui87 .yuimenubar .yuimenu {
position:absolute;
}
#ariyui87 .yuimenubar li, #ariyui87 .yuimenu li {
background-color:transparent;
display:block;
list-style-type:none;
text-align:left;
}
#ariyui87 .yuimenubar ul, #ariyui87 .yuimenu ul {
background-color:transparent;
}
#ariyui87 .yuimenubar ul, #ariyui87 .yuimenu ul, #ariyui87 .yuimenubar li, #ariyui87 .yuimenu li, #ariyui87 .yuimenu h6, #ariyui87 .yuimenubar h6 {
margin:0;
padding:0;
}
#ariyui87.yui-skin-sam .yuimenubarnav .yuimenubaritem, #ariyui87.yui-skin-sam .yuimenunav .yuimenuitem {
display:block;
}
#ariyui87 .yuimenuitemlabel, #ariyui87 .yuimenubaritemlabel {
text-align:left;
white-space:nowrap;
}
#ariyui87 ul li a.yuimenuitemlabel, #ariyui87 ul li a.yuimenuitemlabel:link, #ariyui87 ul li a.yuimenuitemlabel:hover, #ariyui87 ul li a.yuimenuitemlabel:visited, #ariyui87 ul li a.yuimenubaritemlabel, #ariyui87 ul li a.yuimenubaritemlabel:link, #ariyui87 ul li a.yuimenubaritemlabel:hover, #ariyui87 ul li a.yuimenubaritemlabel:visited {
background-color:transparent;
float:none;
}
#ariyui87 .yuimenubar ul {
}
#ariyui87 .yuimenubar .yuimenu ul {
}
#ariyui87 .yuimenubar > .bd > ul:after {
clear:both;
content:".";
display:block;
height:0;
line-height:0;
visibility:hidden;
}
#ariyui87 .yuimenubaritem {
float:left;
}
#ariyui87 .yuimenubaritemlabel, #ariyui87 .yuimenuitemlabel {
display:block;
}
#ariyui87 .yuimenuitemlabel .helptext {
display:block;
font-style:normal;
margin:-1em 0 0 10em;
}
#ariyui87 .yui-menu-shadow {
position:absolute;
visibility:hidden;
z-index:-1;
}
#ariyui87 .yui-menu-shadow-visible {
bottom:-3px;
left:-3px;
right:-3px;
top:2px;
visibility:visible;
}
#ariyui87 .hide-scrollbars * {
overflow:hidden;
}
#ariyui87 .hide-scrollbars select {
display:none;
}
#ariyui87 .yuimenu .show-scrollbars, #ariyui87 .yuimenubar.show-scrollbars {
overflow:visible;
}
#ariyui87 .yuimenu .hide-scrollbars .yui-menu-shadow, #ariyui87 .yuimenubar.hide-scrollbars .yui-menu-shadow {
overflow:hidden;
}
#ariyui87 .yuimenu .show-scrollbars .yui-menu-shadow, #ariyui87 .yuimenubar.show-scrollbars .yui-menu-shadow {
overflow:auto;
}
#ariyui87 .yui-overlay.yui-force-redraw {
margin-bottom:1px;
}
#ariyui87.yui-skin-sam .yuimenubar {
background:url("js/build/assets/skins/sam/sprite.png") repeat-x scroll 0 0 transparent;
border:1px solid #808080;
font-size:93%;
line-height:2;
}
#ariyui87.yui-skin-sam .yuimenubarnav .yuimenubaritem {
border-right:1px solid #CCCCCC;
}
#ariyui87.yui-skin-sam ul li a.yuimenubaritemlabel, #ariyui87.yui-skin-sam ul li a.yuimenubaritemlabel:link, #ariyui87.yui-skin-sam ul li a.yuimenubaritemlabel:visited, #ariyui87.yui-skin-sam ul li a.yuimenubaritemlabel:hover {
border-color:#808080;
border-style:solid;
border-width:1px 0;
color:#000000;
cursor:default;
font-size:93%;
line-height:2;
margin:-1px 0;
padding:0 20px 0 10px;
text-decoration:none;
}
#ariyui87.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu {
background:url("js/build/menu/assets/skins/sam/menubaritem_submenuindicator.png") no-repeat scroll right center transparent;
}
#ariyui87.yui-skin-sam .yuimenubaritem-selected {
background:url("js/build/assets/skins/sam/sprite.png") repeat-x scroll 0 -1700px transparent;
}
#ariyui87.yui-skin-sam a.yuimenubaritemlabel-selected {
border-color:#7D98B8;
}
#ariyui87.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-selected {
border-left-width:1px;
margin-left:-1px;
}
#ariyui87.yui-skin-sam ul li a.yuimenubaritemlabel-disabled, #ariyui87.yui-skin-sam ul li a.yuimenubaritemlabel-disabled:visited, #ariyui87.yui-skin-sam ul li a.yuimenubaritemlabel-disabled:link, #ariyui87.yui-skin-sam ul li a.yuimenubaritemlabel-disabled:hover {
color:#A6A6A6;
cursor:default;
}
#ariyui87.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu-disabled {
background-image:url("js/build/menu/assets/skins/sam/menubaritem_submenuindicator_disabled.png");
}
#ariyui87.yui-skin-sam .yuimenu {
font-size:93%;
line-height:1.5;
}
#ariyui87.yui-skin-sam .yuimenubar .yuimenu, #ariyui87.yui-skin-sam .yuimenu .yuimenu {
font-size:100%;
}
#ariyui87.yui-skin-sam .yuimenu .bd {
background-color:#FFFFFF;
border:1px solid #808080;
}
#ariyui87.yui-skin-sam .yuimenu .yuimenu .bd {
}
#ariyui87.yui-skin-sam .yuimenu ul {
border-color:#CCCCCC;
border-style:solid;
border-width:1px 0 0;
padding:3px 0;
}
#ariyui87.yui-skin-sam .yuimenu ul.first-of-type {
border-width:0;
}
#ariyui87.yui-skin-sam .yuimenu h6 {
border-color:#CCCCCC;
border-style:solid;
border-width:1px 0 0;
color:#A4A4A4;
font-weight:bold;
padding:3px 10px 0;
}
#ariyui87.yui-skin-sam .yuimenu ul .hastitle, #ariyui87.yui-skin-sam .yuimenu h6.first-of-type {
border-width:0;
}
#ariyui87.yui-skin-sam .yuimenu .yui-menu-body-scrolled {
border-color:#CCCCCC #808080;
overflow:hidden;
}
#ariyui87.yui-skin-sam .yuimenu .topscrollbar, #ariyui87.yui-skin-sam .yuimenu .bottomscrollbar {
background:url("js/build/assets/skins/sam/sprite.png") no-repeat scroll 0 0 #FFFFFF;
border:1px solid #808080;
height:16px;
}
#ariyui87.yui-skin-sam .yuimenu .topscrollbar {
background-position:center -950px;
border-bottom-width:0;
}
#ariyui87.yui-skin-sam .yuimenu .topscrollbar_disabled {
background-position:center -975px;
}
#ariyui87.yui-skin-sam .yuimenu .bottomscrollbar {
background-position:center -850px;
border-top-width:0;
}
#ariyui87.yui-skin-sam .yuimenu .bottomscrollbar_disabled {
background-position:center -875px;
}
#ariyui87.yui-skin-sam li.yuimenuitem {
float:none;
}
#ariyui87.yui-skin-sam ul li a.yuimenuitemlabel {
background-color:transparent;
border:0 none;
color:#000000;
cursor:default;
height:auto;
line-height:1.5;
padding:0 20px !important;
text-decoration:none;
}
#ariyui87.yui-skin-sam .yuimenuitemlabel .helptext {
margin-top:-1.5em;
}
#ariyui87.yui-skin-sam li.yuimenuitem-hassubmenu {
background-image:url("js/build/menu/assets/skins/sam/menuitem_submenuindicator.png");
background-position:right center;
background-repeat:no-repeat;
}
#ariyui87.yui-skin-sam .yuimenuitem-checked {
background-image:url("js/build/menu/assets/skins/sam/menuitem_checkbox.png");
background-position:left center;
background-repeat:no-repeat;
}
#ariyui87.yui-skin-sam .yui-menu-shadow-visible {
background-color:#000000;
opacity:0.12;
}
#ariyui87.yui-skin-sam ul li.yuimenuitem-selected, #ariyui87.yui-skin-sam ul li.yuimenuitem-selected, #ariyui87.yui-skin-sam ul li.yuimenuitem-selected, #ariyui87.yui-skin-sam ul li.yuimenuitem-selected {
background-color:#B3D4FF;
}
#ariyui87.yui-skin-sam ul li.yuimenuitem-disabled, #ariyui87.yui-skin-sam ul li.yuimenuitem-disabled, #ariyui87.yui-skin-sam ul li.yuimenuitem-disabled, #ariyui87.yui-skin-sam ul li.yuimenuitem-disabled {
background-color:transparent;
}
#ariyui87.yui-skin-sam ul li a.yuimenuitemlabel-disabled, #ariyui87.yui-skin-sam ul li a.yuimenuitemlabel-disabled:visited, #ariyui87.yui-skin-sam ul li a.yuimenuitemlabel-disabled:link, #ariyui87.yui-skin-sam ul li a.yuimenuitemlabel-disabled:hover {
color:#A6A6A6;
cursor:default;
}
#ariyui87.yui-skin-sam .yuimenuitem-hassubmenu-disabled {
background-image:url("js/build/menu/assets/skins/sam/menuitem_submenuindicator_disabled.png");
}
#ariyui87.yui-skin-sam .yuimenuitem-checked-disabled {
background-image:url("js/build/menu/assets/skins/sam/menuitem_checkbox_disabled.png");
}

Open in new window

Data Scientist
Most Valuable Expert 2014
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks!  That fixed it!

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.