View Single Post
Old 10-20-2010, 06:24 PM  
BestXXXPorn
Confirmed User
 
BestXXXPorn's Avatar
 
Join Date: Jun 2009
Location: Asheville, NC
Posts: 2,277
Quote:
Originally Posted by prezzz View Post
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...
__________________
ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com
BestXXXPorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote