Results 1 to 2 of 2

Thread: hover background color width

  1. #1
    Join Date
    Jun 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default hover background color width

    good day - new to forum

    below I have attached a section of my page -
    I want to get the background color to equal text width...
    not sure about how to accomplish this task.

    the first block is for background box of drop down menu
    the second block is the highlight hover background color that I want to match text width not background box width (as in auto setting in lieu of %)

    thanks in advance


    ul.topmenu li ul {
    display: block;
    position: absolute;
    left: 0;
    top: 1.0.em;
    visibility: hidden;
    width: 250%;
    z-index: 1000;
    background-color : #fff;
    border : 0px solid #000;
    border-top: 0;
    }


    ul.topmenu a {
    color : #ffffff;
    } ul.topmenu li ul li {
    margin: 0 0 0 -1.5em;
    padding: 0;
    display: block;
    width: 100%;
    font-family: arial;
    font-size: 14px;
    margin : 0px 0px 0px 0px;
    background-color : #fff;
    color : #000;

  2. #2
    Join Date
    May 2011
    Location
    SFBA, CA, USA
    Posts
    94
    Thanks
    6
    Thanked 7 Times in 7 Posts

    Default

    got a link?

Bookmarks

Posting Permissions

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