Go Back   Technology Forums > Computer Forums > HTML and CSS

Share your knowledge and questions, related to HTML and CSS in this forum.


CSS - Anchor Text Style


Reply
 
LinkBack Thread Tools Search this Thread
  #1 (permalink)  
Old 02-23-2007, 09:33 PM
Administrator
 
Join Date: Dec 2006
Posts: 304
shri has disabled reputation
Default CSS - Anchor Text Style

Using CSS you can change the way the anchor of the link looks.

Four states of the anchor text can be styled.

link: Affects unvisited links
visited: Affects links that your browser knows that you've visited.
hover: affects the link that your mouse is hovering over
active: the active link that has been selected by tabbing over.

Code:
<style>
a:link {color: #FF0000; font-weight: bold;}     /* unvisited link */
a:visited {color: #00FF00}  /* visited link */
a:hover {color: #FF00FF}   /* mouse over link */
a:active {color: #0000FF}   /* selected link */
</style>
The above example makes the unvisited links bold.
Reply With Quote
  #2 (permalink)  
Old 02-23-2007, 09:34 PM
Administrator
 
Join Date: Dec 2006
Posts: 304
shri has disabled reputation
Default

On a bit of an editorial note, we highly recommend against the current trend of putting "text-decoration: none;" in the anchor styles.

Most users we know (including ourselves) look for the underlined text as an indicator that there is some more information / a link to click.
Reply With Quote
Reply





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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
SLES10 - text based YaST JFritz Linux Forum 0 11-28-2007 10:56 AM
CSS - text-transform shri HTML and CSS 0 02-15-2007 11:18 PM



Advanced Search

All times are GMT -6. The time now is 07:32 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.