Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder Kevin_M_Schafer's Avatar
    Join Date
    Apr 2011
    Location
    Fairfax, Minnesota, U.S.A.
    Posts
    482
    Thanks
    97
    Thanked 17 Times in 17 Posts

    Applying a hover to a title in css

    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;
    cursorointer;
    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.

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,956
    Thanks
    9
    Thanked 727 Times in 721 Posts
    Code:
    .MenuTitle:hover{background-color:red}
    Won't work in IE6, as that only supports hover on anchor elements.

  • Users who have thanked SB65 for this post:

    Kevin_M_Schafer (04-04-2011)

  • #3
    Regular Coder Kevin_M_Schafer's Avatar
    Join Date
    Apr 2011
    Location
    Fairfax, Minnesota, U.S.A.
    Posts
    482
    Thanks
    97
    Thanked 17 Times in 17 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •