Question about CSS and links

Started on the old forum in April 2010 · view the original in the archive · old links redirect here

2 replies · 388 views · started 16 years ago · 1 min read

3 participants
djlee Developer · 224 posts #2

a:visited { xxxxxxx } # a link to a page you have already been to uses this css a:active { xxxxxxx } # clicking a link makes it active a:hover { xxxxxxx } # hover over link a:link { xxxxxxxx } # standard state of a link

most commonly you would do

a {color: red; text-decoration: none; } a:hover { color: blue; text-decoration: underline }

This would make all links blue with no underline until you hover over them when they will turn blue with a underline.

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close