Results 1 to 6 of 6

Thread: Change a single buttons color?

  1. #1
    Join Date
    Oct 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Change a single buttons color?

    1) Script Title: Smooth navigation menu

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

    3) Describe problem: Currently using this menu on a nonprofit site. The director wants to change the color of a single button (donate button) to kind of make it stand out and get more view, of course keeping the color of the rest of the menu the original color. Would something like this be possible? Thanks.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Yes, it would.
    Please post a link to the page on your site that contains the problematic script so we can check it out.
    Jeremy | jfein.net

  3. #3
    Join Date
    Oct 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Try changing:
    Code:
    <li><a href="donate.html" target="_blank">Donate</a></li>
    To"
    Code:
    <li><a href="donate.html" target="_blank" class="donate">Donate</a></li>
    And in ddsmoothmenu.css, try adding:
    Code:
    .ddsmoothmenu ul li a.donate {
    background-color: blue;
    }
    Under:
    Code:
    /*Top level menu link items style*/.ddsmoothmenu ul li a{
    display: block;
    background: #414141;
     /*background of menu items (default state)*/color: white;
    padding: 8px 10px;
    border-right: 1px solid #778;
    color: #2d2b2b;
    text-decoration: none;
    }
    Jeremy | jfein.net

  5. #5
    Join Date
    Oct 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you very much, that works perfectly

  6. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Glad to help you! Your welcome!

    It seems your topic is solved... Please set the status to resolved.. To do this:
    Go to your first post ->
    Edit your first post ->
    Click "Go Advanced" ->
    Then in the drop down next to the title, select "RESOLVED"


    By the way: I suggest making the color something more like #666699.
    Jeremy | jfein.net

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
  •