Menu highlight.. change the font colour? (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


Adila -> Menu highlight.. change the font colour? (8/9/2006 6:36:49)

geehhh okay i know that this suppose to be easy but oh well.. i still cant figure it out lol

how to make something like this http://dynamicdrive.com/ (left, the menu from font colour, green to white)?

A.menulink {
display: block;
width: 148px;
text-align: left;
text-decoration: none;
font-family:arial;
font-size:8pt;
color: #FFFFFF;
}

A.menulink:hover {
font-family:arial;
font-size:8pt;
color: #000000;
border: solid 1px #FFFFFF;
background-color:#CCCC00};
}

is it?
it doesnt work =.= http://www.smkdso.edu.my/v1.htm

help?
thanks ^^




Tailslide -> RE: Menu highlight.. change the font colour? (8/9/2006 7:14:36)

It's working for me... did you sort it out?




Adila -> RE: Menu highlight.. change the font colour? (8/9/2006 7:43:50)

no

uhh.. when i pointed my mouse on the "laman utama" i want the font colour to be black but it is still white =.=




Tailslide -> RE: Menu highlight.. change the font colour? (8/9/2006 8:45:46)

Oh ok. You need to remove the font colour tag on the menu items themselves within the markup as this will overrule any CSS further up the cascade chain. You should also make the font-colour of the hover rule black. Then it works fine.

Font tag:
<font color="#FFFFFF">


CSS rule should be:
a.menulink:hover {
font-family:arial;
font-size:8pt;
color: #000000;
border: solid 1px #FFFFFF;
background-color:#CCCC00};
} 


It's black in your post above but on the page itself it isn't it's #CCCC00;




Adila -> RE: Menu highlight.. change the font colour? (8/9/2006 9:08:22)

ah ic

thanks [:D]




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875