Results 1 to 2 of 2

Thread: Modifing style of popit menu

  1. #1
    Join Date
    Dec 2004
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Modifing style of popit menu

    Hi,

    I found a cool little code on this site and I was wondering if someone could help me find out how to modify the colours of this pop up menu:

    http://dynamicdrive.com/dynamicindex1/popit.htm

    As you can see the bg is white and the highlight is a light green I would like the bg to be black and the text white with a #003196 colour highlight.

    Does anybody know how to do this? thanks in advance

    kind regards

    Maverick

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That is all set here, using ordinary css style (I've added css comments to indicate what does what) slightly modified from the demo:

    <style type="text/css">

    Code:
    #popitmenu{
    position: absolute;
    background-color: white; /*background for menu*/
    border:1px solid black;
    font: normal 12px Verdana;
    line-height: 18px;
    z-index: 100;
    visibility: hidden;
    }
    
    #popitmenu a{
    text-decoration: none;
    padding-left: 6px;
    color: black; /*color for text*/
    display: block;
    }
    
    #popitmenu a:hover{
    background-color: #CCFF9D;  /*hover background color*/
    color:blue;  /*hover text color*/
    }
    If you want the hover color of the text to be different than the normal color for text, use the red property/value pair to set that. If you don't want the text color to change, don't use that line (remove it).
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •