Forum Moderators: not2easy

Message Too Old, No Replies

Page Identification Underline Color

want to change the colour of the underline on link

         

heirani1

4:03 pm on Dec 23, 2008 (gmt 0)

10+ Year Member



Basically when the user is on the current page i want the text to be in one colour and the underline to be another colour, while the rest of the links are all another colour.

How would i go about this? i can change the colour but the text and underline become the same.

Heres some of my code ....

ul.nav {

text-align: right;
margin: 0px;
padding: 0px;
list-style: none;
}
li.nav {
font-size: 30px;
line-height: 25px;
margin: 0;
padding: 5px 0 15px 10px;
display: list-item;
}

a.nav {
text-decoration: none;
display: block;
color: #421628;
font-style: normal;
font-family: Arial, Helvetica, sans-serif;
}

body#lemon li#lemon_nav,
body#lemon a#lemon_a_nav
{
text-decoration: underline;
color: #9c8b5b;
}

lavazza

6:50 pm on Dec 23, 2008 (gmt 0)

10+ Year Member



You might benefit from reading some of the posts here:

Results 1 - 48 of 48 from webmasterworld.com for css link visited hover active love hate [google.com]

LoVe HAte is a mnemonic for the order in which the pseud-classes must be applied
Link
Visited
Hover
Active (the one you want, I think)