Quote:
Originally Posted by prezzz
If it's just one instance in the code, drop the span part, give the <a> an id and add 2 lines of code to the css file.
<a href="http://www.myurl.com" id="thisone">CLICK HERE</a>
a#thisone:link, a#thisone:visited { font: 700 12px Arial, sans-serif; color: #fff; }
a#thisone:hover, a#thisone:active { color: #000; }
|
Perfect, there's no need for a span inside the anchor tag... Especially if you want a hover state as some browsers will only recognize anchors to have :hover...
I would probably opt for a class instead of an id in case you want to reuse it later:
<a href="http://www.whatever.com" class="blackWhite">Click Here</a>
a.blackWhite, a.blackWhite:visited { font: ...; color: #fff; }
a.blackWhite:hover, a.blackWhite:active { color: #000; }
Then you can just use the css class on any anchor tag you may want but for sure, as prezzz used... break it out into the style sheet. That way you can update it whenever you want without searching through mounds of copy...
