PDA

View Full Version : Change a single buttons color?



jls1986
10-28-2009, 07:01 PM
1) Script Title: Smooth navigation menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.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.

Nile
10-29-2009, 02:08 PM
Yes, it would.
Please post a link to the page on your site that contains the problematic script so we can check it out.

jls1986
10-29-2009, 03:26 PM
http://www.thecwcf.org

Nile
10-29-2009, 03:56 PM
Try changing:


<li><a href="donate.html" target="_blank">Donate</a></li>

To"


<li><a href="donate.html" target="_blank" class="donate">Donate</a></li>


And in ddsmoothmenu.css, try adding:


.ddsmoothmenu ul li a.donate {
background-color: blue;
}



Under:

/*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;
}

jls1986
10-29-2009, 05:17 PM
Thank you very much, that works perfectly

Nile
10-29-2009, 08:49 PM
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.