Wednesday, November 24, 2010

How do you change link color (after and before click) in html for a certain link only?

I want the color for my email to be different, but keep the rest links as defaultHow do you change link color (after and before click) in html for a certain link only?There's probably more than one way to do this. This will work.



%26lt;style type=%26quot;text/css%26quot;%26gt;

.slink a:link {color: #FF0000}

.slink a:visited {color: #00FF00}

.slink a:hover {color: #FF00FF}

.slink a:active {color: #0000FF}

.slink {}

%26lt;/style%26gt;



%26lt;span class=%26quot;slink%26quot;%26gt;%26lt;a href=%26quot;special.colored.link%26quot;%26gt; text %26lt;/a%26gt;%26lt;/span%26gt;How do you change link color (after and before click) in html for a certain link only?re: the above.

The span is completely redundant. You can set the class of the a element just as well without using a span.
  • cream around eyes
  • use hair removal cream
  •