PDA

View Full Version : Lil CSS help please



SmileUK
13-10-2008, 08:28 PM
Right this isn't working at all.
Well it partly works in IE, but everywhere is a:link colours and the nav should be black. It worked on my old site but I merged some together.

#nav a:link, a:visted, a:active { color: #000000; text-decoration: none; outline: none; }
#nav a:hover { color: #000000; text-decoration: underline; outline: none; }
a:link, a:active, a:visted { color: #B4AC7E; text-decoration: none; outline: none; }
a:hover { color: #B4AC7E; text-decoration: underline; outline: none; }
Anyone know what's up?

Decode
13-10-2008, 08:37 PM
#nav a:link
{
color: #000000;
text-decoration:
none; outline: none;
}
#nav a:visited
{
color: #000000;
text-decoration:
none; outline: none;
}
#nav a:active
{
color: #000000;
text-decoration:
none; outline: none;
}
#nav a:hover
{
color: #000000;
text-decoration: underline;
outline: none;
}
a:link
{
color: #B4AC7E;
text-decoration: none;
outline: none;
}
a:active
{
color: #B4AC7E;
text-decoration: none;
outline: none;
}
a:visited
{
color: #B4AC7E;
text-decoration: none;
outline: none;
}
a:hover
{
color: #B4AC7E;
text-decoration: underline;
outline: none;
}


thats a very long winded way of doing it but it will work

SmileUK
13-10-2008, 08:48 PM
ta, thought you could group them but obv not.
and i found out i needed to put header not nav, silly me:rolleyes:

Iszak
14-10-2008, 07:18 PM
You can,



#nav a
{
color: #000;
outline: none;
text-decoration: none;
}

#nav a:hover
{
color: #000;
text-decoration: underline;
}

a
{
outline: none;
color: #b4ac7e;
text-decoration: none;
}

a:hover
{
text-decoration: underline;
}



You can even cut it down more by doing this


a
{
color: #b4ac7e;
outline: none;
text-decoration: none;
}

a:hover
{
text-decoration: underline;
}

#nav a, #nav a:hover
{
color: #000;
}

Meti
14-10-2008, 07:43 PM
Lol. Your code is wrong :P

Tom's code will do :)

Iszak
20-10-2008, 08:21 PM
If that's in reference to my post - you're wrong actually mine does the exactly the same :)

Meti
21-10-2008, 02:00 PM
why do you have 2 accounts?

Iszak
21-10-2008, 04:25 PM
I don't, what are you talking about?

Want to hide these adverts? Register an account for free!