JavaScript and client side scripting.
Moderator: General Moderators
-
tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
Post
by tecktalkcm0391 »
I can't seem to get the links to change color (to brown) and have no underline until hover....
I've tried both ids and classes.
Code: Select all
#page a:link {text-decoration: none; color:#663300; font-weight:bold;}
#page a:visited {text-decoration: none; color:#663300; font-weight:bold;}
#page a:active {text-decoration: none; color:#663300; font-weight:bold;}
#page a:hover {text-decoration: none; color:#663300; font-weight:bold;}
Code: Select all
<a href="/" class="page" id="page">Home</a>
-
tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
Post
by tecktalkcm0391 »
Nevermind I got it. Stupid websites that lie.
Its has to be...
Code: Select all
a.page:link {text-decoration: none; color:#663300; font-weight:bold;}
a.page:visited {text-decoration: none; color:#663300; font-weight:bold;}
a.page:active {text-decoration: none; color:#663300; font-weight:bold;}
a.page:hover {text-decoration: none; color:#663300; font-weight:bold;}
-
superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Post
by superdezign »

Right. Also, more than one element can't have the same id. The id represents one single element.
-
tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
Post
by tecktalkcm0391 »
I got one more question...
I have an image with the class of "page" how do I get it to NOT have a border. If I add border:none; nothing happens.
-
Jenk
- DevNet Master
- Posts: 3587
- Joined: Mon Sep 19, 2005 6:24 am
- Location: London
Post
by Jenk »