You need to sign in to do that
Don't have an account?

How to define CSS in a Visualforce Email Template
Hi,
I'm working on email templates recent days, and I encounted a problem that I can't import css in a Visualforce Email Template.
The strange thing is that even I paste the code in this article the css code still takes no effect.
http://www.salesforce.com/us/developer/docs/pages/Content/pages_email_templates_stylesheets.htm
Is this usage not supported in new version? Or do I miss some details? Your help would be appreciated, Thanks.
<html> <style type="text/css"> body {font-family: Courier; size: 12pt;} table { border-width: 5px; border-spacing: 5px; border-style: dashed; border-color: #FF0000; background-color: #FFFFFF; } td { border-width: 1px; padding: 4px; border-style: solid; border-color: #000000; background-color: #FFEECC; } th { color: #000000; border-width: 1px ; padding: 4px ; border-style: solid ; border-color: #000000; background-color: #FFFFF0; } </style> <body>
<html>
<head>
<style type="text/css">
body {font-family: Courier; size: 12pt;}
table {
border-width: 5px;
border-spacing: 5px;
border-style: dashed;
border-color: #FF0000;
background-color: #FFFFFF;
}
td {
border-width: 1px;
padding: 4px;
border-style: solid;
border-color: #000000;
background-color: #FFEECC;
}
th {
color: #000000;
border-width: 1px ;
padding: 4px ;
border-style: solid ;
border-color: #000000;
background-color: #FFFFF0;
}
</style>
</head>
<body>
Enter ur data
</body>
</head>
Hi sekhara,
I have tried to put the css segment into the head segment ,but still no effect.
Mark.