Log in

View Full Version : Need help with font size and color in menu...



brossyg
08-01-2009, 01:34 AM
1) Script Title: anylinkmenu

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

3) Describe problem:

I have edited the CSS to change the font in the menu to 8 pt red:


.anylinkmenu{
position: absolute;
left: 0;
top: 0;
visibility: hidden;
border: 1px solid black;
border-bottom-width: 0;
font-size: 8pt;
font-family: Verdana, Arial, Helvetica, Sans-Serif;
color: #FF0000;
line-height: 18px;
z-index: 100; /* zIndex should be greater than that of shadow's below */
background: #FFFFFF;
width: 200px; /* default width for menu */
}

The html that call it is:


<p><a href="Stewardship.htm" class="menuanchorclass" rel="anylinkmenu1"><font CLASS="pageheader10">Stewardship Resources</font></a></p>

However, the text is 12 point black bold, not 8 pt red. Nothing I do seems to make a difference. All other parameters effect the menu as expected. How do I edit the font size and color?

Also, I have tried to figure a way to make a second layer of the menu...is this possible? If so, how?

Thanks.

davelf
08-02-2009, 11:12 AM
it's because your class name are not same as the class you name in the css file, you can change the class into <p class="anylinkmenu">.

You can add as manual too <font size="12pt" colour="red">Your text here</font>

brossyg
08-03-2009, 03:31 PM
Actually...the prob was I was editing the wrong CSS element. I fixed that. However, i am still in need of a second menu layer...is there a way to add a layer to the menu?

ddadmin
08-03-2009, 09:49 PM
There's no easy way to add additional levels to this script unfortunately. I plan to eventually release an "anylink" style multi level menu. In the meantime, the closest thing on DD is probably All Levels Menu (http://dynamicdrive.com/dynamicindex1/ddlevelsmenu/index.htm) (which is a menu bar however).