...

View Full Version : Applying a hover to a title in css



Kevin_M_Schafer
04-03-2011, 09:42 PM
hi,

are there any ideas how to add a hover feature to this block of css? i would like the background to change to another color when a hover takes place.

.MenuTitle
{
border-top: 0px solid #ffffff;
border-bottom: 1px solid #ffffff;
height:26px;
cursor:pointer;
font-family:Verdana;
font-size:10pt;
font-weight:bold;
color: #ffffff;
vertical-align:middle;
text-align:center;
background-repeat:repeat-x;
display:table-cell;
background-color: #000000;
-moz-user-select:none;
}



Any help would be appreciated. thanks.

SB65
04-03-2011, 09:48 PM
.MenuTitle:hover{background-color:red}

Won't work in IE6, as that only supports hover on anchor elements.

Kevin_M_Schafer
04-04-2011, 12:40 AM
SB65,

You did it! Thank you for your help. My mother will be thrilled. She said it was hard for her to know she was on the right line with her mouse without something changing, such as color.

I really appreciate your help.

Peace.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum