Results 1 to 5 of 5

Thread: change BG color of sub menu tab

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

    Default change BG color of sub menu tab

    1) Script Title: Smooth Navigational Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...smoothmenu.htm

    3) Describe problem: I'd like to change the background color of the submenu tab only.

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    try this
    Code:
    /* Sub level menu links style */
    .ddsmoothmenu ul li ul li a{
    font: normal 13px Verdana;
    width: 160px; /*width of sub menus*/
    padding: 5px;
    margin: 0;
    border-top-width: 0;
    border-bottom: 1px solid gray;
    background: orange;
    }

  3. #3
    Join Date
    Jan 2011
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    i'm using the vertical menu (ddsmoothmenu-v.css)
    tried adding "background:color;" to the below section. however it's not working.

    /*Sub level menu items */
    .ddsmoothmenu-v ul li ul{
    position: absolute;
    width: 190px; /*Sub Menu Items width */
    top: 0;
    font-weight: normal;
    visibility: hidden;
    }

  4. #4
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    I think this could do it in the vertical menu
    Code:
    .ddsmoothmenu-v ul li ul li a {
        background: red !important;
    }

  5. #5
    Join Date
    Jan 2011
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    That did the trick.....thanks a bunch.

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
  •