PDA

View Full Version : Anylink Drop down Menu



LVStephens
01-01-2010, 07:32 PM
1) Script Title: Anylink Dropdown Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

3) Describe problem: I've figured out how to manage the CSS for the menus but I can't figure out how to control the HTML entries. E.g., <a href="#here" class="menuanchorclass" rel="anylinkmenu1">Staff</a> I want to control the size of "Staff" so I did this:
.selectedanchor{ /*CSS class that gets added to the currently selected anchor link (assuming it's a text link)*/
background: black;
font-size:10px;
} (i.e., added the font-size line)

but it has no effect. What am I missing?

jscheuer1
01-01-2010, 09:04 PM
That will only have an effect upon the currently selected trigger anchor. To affect all trigger anchors, use:


.menuanchorclass {
font-size: 10px;
}

If you want more help:

Please post a link to the page on your site that contains the problematic code so we can check it out.

LVStephens
01-02-2010, 02:39 PM
Trying that - doesn't seem to affect the text.

http://cincinnaticc.org

jscheuer1
01-02-2010, 03:08 PM
You have in your style.css file:



a:link { color: #ffffff;
text-decoration:none;
font-size: 14px;
font-weight:bold;
}

This takes precedence because of the :link pseudo class. So, in your anylinkmenu.css file you can:


.menuanchorclass:link {
font-size: 10px;

}

LVStephens
01-02-2010, 05:25 PM
Excellent! Thanks.