2 replies [Last post]
shaxs
Offline
newbie
Last seen: 16 years 22 weeks ago
Joined: 2004-07-01
Posts: 2
Points: 0

I have a right side navigational menu. I want to set the text properties and the link properties. I bet this is easy, I just dont know how. Here is my css so far. I want my initial link color to be black, the hover as color #FF7800, and visited as black.

p.rightnav
{
margin-left: 5px;
font-family: verdana;
Font-size: 12px;
}
a.rightnav: hover
{
color: #FF7800;
}

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 6 hours 38 min ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Setting text and link properties in one class

Hi shaxs,
It looks like you have a paragraph with the class of rightnav and links with in it. If so this is what you need.

.rightnav a{color:black;} 
.rightnav a:visited{color:black;} 
.rightnav a:hover{color: #FF7800;}


Hope that helps

shaxs
Offline
newbie
Last seen: 16 years 22 weeks ago
Joined: 2004-07-01
Posts: 2
Points: 0

Setting text and link properties in one class

beautiful, works perfectly