View Single Post
  #5  
Old 08-14-2010, 12:54 PM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Using CSS in e-mails - how?

Inline styles should take precedence of internal or external declarations.

Inline:
Code:
<span style="color: black; font-weight: bold; font-size: 1em">Text effected</span>

Internal:
Code:
<style type="text/css"> p { color: black; font-weight: bold; } </style> <p> This should be styled in websites, but email providers will likely strip it out for security and styling reasons. </p>

External (doesnt work for emails):
Code:
<link rel="stylesheet" type="text/css" href="mystyle.css" />
__________________
- Shane Munroe
Reply With Quote