View Full Version : CSS Help
richard_r
06-30-2002, 04:18 PM
Could anybody list the A: properties for links..
A:active
A:visited
thats all that I know
boxer_1
06-30-2002, 04: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:
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
06-30-2002, 10: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) ;).
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
07-01-2002, 02:32 PM
http://www.w3schools.com/css/css_pseudo_classes.asp
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.