Log in

View Full Version : Font color in Java CSS



dmaier
08-04-2006, 02:35 AM
I am trying to modify the css in the Switch menu script on Dyanamic Drive so the submenu items which are hyperlinks are white. I am using a blue background and have the main menu items in white but the submenu items show up in blue. I have tried color: #FFFFFF and font-color: #FFFFFF. Is there a way to due this?

The style portion of the Java script in the head of the page looks like this:
<style type="text/css">
.menutitle{
cursor:pointer;
margin-bottom: 5px;
background-color:#ECECFF;
color:#000000;
width:140px;
padding:2px;
text-align:center;
font-weight:bold;
/*/*/border:1px solid #000000;/* */
}

.submenu{
margin-bottom: 0.5em;
}
</style>


I am trying to do something with the sub menu font to make it white.

Here is the link to the script:
http://www.dynamicdrive.com/dynamicindex1/switchmenu.htm

boogyman
08-04-2006, 03:06 AM
you should be able to put your css code in the .submenu{} area.

.submenu{
margin-bottom: 0.5em;
color: #fff;
}

jscheuer1
08-04-2006, 06:50 AM
you should be able to put your css code in the .submenu{} area.

.submenu{
margin-bottom: 0.5em;
color: #fff;
}


I don't think that will work as this menu using anchor links to contain the text. This would require a selector like so:


.submenu a {

See:

http://www.dynamicdrive.com/forums/showthread.php?t=11751

ddadmin
08-04-2006, 09:45 AM
Hi dmaier:
Please do not cross post the same question in multiple threads, and also, observe the posting guidelines (this question should belong in the DD scripts category). Closing this thread, as duplicate can be found here:
http://www.dynamicdrive.com/forums/showthread.php?t=11751