![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
I'll make a mockup for ya! Here's the CSS code a:link { a:visited { a:active { a:hover { |
#4
| |||
| |||
|
|
Problem - Active will be overruled by hover. The best order (I'll include focus as well) is |
|
link visited focus hover active |
#5
| |||
| |||
|
|
link visited hover focus active |
#6
| |||
| |||
|
|
On Thu, 18 Nov 2004 05:35:39 GMT, Lachlan Hunt <spam.my.gspot (AT) gmail (DOT) com wrote: link visited hover focus active Really? Ok, but why? |
#7
| |||
| |||
|
|
Hey M. Kinstlinger, No this is easy. Actually quite easy. All you do is use the visited psuedo class. I'll make a mockup for ya! Here's the CSS code (put in your external CSS document or in the <head> tags: /* Creates the font, font size, and font color of the hyperlink */ a:link { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:10px; color:#ff9900; } /* Creates the font, font size, and font color of the hyperlink, if visited */ a:visited { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:10px; color:#ff9900; } /* Creates the font, font size, and font color of the hyperlink when mouse is currently being pushed */ a:active { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:10px; color:#ff9900; } /* Creates the font, font size, and font color of the hyperlink when your mouse is over it */ a:hover { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:10px; color:#ff9900; } now just add the XHTML in your document: a href="www.google.com">Click Here</a Hope this helps resolve your problem. Best Regards, Drew Decker |
#8
| |||
| |||
|
|
Hey M. Kinstlinger, No this is easy. Actually quite easy. All you do is use the visited psuedo class. I'll make a mockup for ya! Here's the CSS code (put in your external CSS document or in the <head> tags: /* Creates the font, font size, and font color of the hyperlink */ a:link { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:10px; color:#ff9900; } /* Creates the font, font size, and font color of the hyperlink, if visited */ a:visited { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:10px; color:#ff9900; } /* Creates the font, font size, and font color of the hyperlink when mouse is currently being pushed */ a:active { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:10px; color:#ff9900; } /* Creates the font, font size, and font color of the hyperlink when your mouse is over it */ a:hover { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:10px; color:#ff9900; } now just add the XHTML in your document: a href="www.google.com">Click Here</a Hope this helps resolve your problem. Best Regards, Drew Decker |
#9
| |||
| |||
|
|
Neal wrote: On Thu, 18 Nov 2004 05:35:39 GMT, Lachlan Hunt <spam.my.gspot (AT) gmail (DOT) com wrote: link visited hover focus active Really? Ok, but why? Cause that's what it said in Dave Shea's CSS Crib Sheet that I linked to, but now that I've thought about, it really depends how you want it to work. |
|
I could only find articles that discus :link, visited, hover and active, but nothing that mentions focus as anything important. So, it should be fine to interchange hover and focus, depending on what works best for the author. |
#10
| |||
| |||
|
|
Actually, let me try that again. I do have link and hover and visited properties set up. Usually, hover is just an underline. |
![]() |
| Thread Tools | |
| Display Modes | |
| |