PDA

View Full Version : CSS Help



richard_r
Jun 30th, 2002, 05:18 PM
Could anybody list the A: properties for links..

A:active
A:visited

thats all that I know

boxer_1
Jun 30th, 2002, 05:45 PM
Hi, here are the various link states:

A:link { color: red } /* unvisited links */
A:visited { color: blue } /* visited links */
A:hover { color: yellow } /* user hovers */
A:active { color: lime } /* active links */

:thumbsup:

jkd
Jun 30th, 2002, 09:41 PM
You also have other pseudo-selectors that CSS2 compliant browsers should support (which is only currently Gecko and Opera it seems) on any element:

a:before
a:after
a:first-child
a:first-letter
a:first-line

etc

boxer_1
Jun 30th, 2002, 11:15 PM
Originally posted by jkd
You also have other pseudo-selectors that CSS2 compliant browsers should support (which is only currently Gecko and Opera it seems) on any element:

a:before
a:after
a:first-child
a:first-letter
a:first-line

etc

Yes, to be complete, I left them out to try to avoid confusion (taking in too much at once), but technically, the pseudo-selectors probably should have been mentioned. Given that these selectors have very limited browser support, as you noted, I would only consider them as an 'at least i know them' element as opposed to implimenting them for a while (IMO) ;).

jkd
Jun 30th, 2002, 11:19 PM
But they are incredibly useful when IE gets it act together ;).

Content generation through CSS is quite cool. (with :before, :after, and content: property)

applesauce
Jul 1st, 2002, 03:32 PM
http://www.w3schools.com/css/css_pseudo_classes.asp