Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Question about having two a, a:hover, a:visited in CSS
Old 10-06-2005, 12:57 PM Question about having two a, a:hover, a:visited in CSS
Sonti's Avatar
Novice Talker

Posts: 11
Trades: 0
hi,
on a webpage i'm making i want to use two different a, a:hover and a:visited, because i want one of the links to look different.

my general a, a:hover, a:visited are;

a{
text-decoration:none;
color:#000000;
font-family:verdana ,arial;
font-size:10px;
font-weight:bold;
}

a:visited{
color:#656462;
}

a:hover{
color:#ce281a;
}

now i'm trying to make a class for the other link i want the different effect on. But lets say if i make an a class i can't make a:hover and a:visited. So my question is how can i make a class or id that changes a, a:hover, a:visited for just one specified text link.

Thanks
Sonti is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-06-2005, 12:59 PM
sdcdesign.co.uk's Avatar
Extreme Talker

Posts: 198
Location: High Wycombe, Buckinghamshire, London
Trades: 0
Code:
<style type="text/css">

a.other { 
    style info here
}

a:visited.other {
    style info here
}

a:hover.other {
    style info here
}
</style>


<a href="#" class="other">link</a>

That is off the top of my head but should work...
__________________
[ Insert witty, yet highly intelligent signature here ]
sdcdesign.co.uk is offline
Reply With Quote
View Public Profile Visit sdcdesign.co.uk's homepage!
 
Reply     « Reply to Question about having two a, a:hover, a:visited in CSS
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09677 seconds with 12 queries