Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

definitive

macrumors 68020
Original poster
Aug 4, 2008
2,089
1,021
I'm making a html based email template, and having trouble removing the text decoration from the link (or change its color). since the <style> stuff doesn't seem to work correctly, I'm doing everything in a <span> format like so:

Code:
<a href="http://www.website.com"><span style="color:#123123;font-family:sans-serif;text-align:center;font-weight:bold;font-size:12px;padding:0px;margin:0px;">www.website.com</span></a>

When I tried to add

Code:
a:link{"color:#123123;text-decoration:none;"};

after the margin:0px; along with a:hover and a:active, the link underline still remains the same default blue system color. Is there a way to fix this? Keep in mine I can't use a separate CSS file, and can't use <style> because it presents issues when being emailed on some clients.
 
Code:
a:link {
color: #123123; 
text-decoration: none;
}
Lose the quotes.
 
edit: ok figured out what was wrong, though it got rid of the underline altogether. i had to enter the text-decoration: none; in the <a tag as <a style="text-....
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.