CSS: Same link text, just different colors

March 23, 2005 by  
Filed under CSS, Daily Ramblings

CSS Trick: Same link text, just different colors

I thought this was a cute CSS trick. I never thought about doing that, but then again, I probably wouldn’t use it in my designs. But who knows. ;)

Related Posts Plugin for WordPress, Blogger...
  • http://www.adamthedog.com Adam

    As I recall, nesting <a> tags is not “allowed”; by strict XHTML standards, so this is an interesting way to do it the right way. I’ve been doing this on many of my pages, but the opposite way around (the <a> tag within <div> tag, using the stylesheet to change the way it looks. I think most people do it that way, but this is for a “one link” look.

  • http://www.adamthedog.com Adam

    As I recall, nesting <a> tags is not “allowed”; by strict XHTML standards, so this is an interesting way to do it the right way. I’ve been doing this on many of my pages, but the opposite way around (the <a> tag within <div> tag, using the stylesheet to change the way it looks. I think most people do it that way, but this is for a “one link” look.