Hi there,
I'm trying to format the email font size and colour but I'm not sure if it's possible or what I'm doing wrong. In my email template I have the following code but it's not being applied to the email when I get it. Do I have to create a css file and link it in the email?
<style type="text/css">
body,td,th {
font-family: verdana;
font-size: 11px;
}
body {
background-color: #FFFFFF;
margin-left: 0px;
margin-top: 0px;
}
.onlinefrm {
font-family: verdana;
font-size: 14px;
font-weight: bold;
color: #9c1327;
}
</style>
Thank you.
I'm trying to format the email font size and colour but I'm not sure if it's possible or what I'm doing wrong. In my email template I have the following code but it's not being applied to the email when I get it. Do I have to create a css file and link it in the email?
<style type="text/css">
body,td,th {
font-family: verdana;
font-size: 11px;
}
body {
background-color: #FFFFFF;
margin-left: 0px;
margin-top: 0px;
}
.onlinefrm {
font-family: verdana;
font-size: 14px;
font-weight: bold;
color: #9c1327;
}
</style>
Thank you.
Hi LikeStuff,
Formatting emails is tricky as the result depends on the email reader and they vary widely. I think that some versions of Outlook for example, will not read css except as style= . . . statements. Generally the safest result is to apply styles only inside the tags and then test in the main readers - gmail, mslive, aol, outlook, thunderbird etc.
There's an article here that gives you more detail.
Bob
Formatting emails is tricky as the result depends on the email reader and they vary widely. I think that some versions of Outlook for example, will not read css except as style= . . . statements. Generally the safest result is to apply styles only inside the tags and then test in the main readers - gmail, mslive, aol, outlook, thunderbird etc.
There's an article here that gives you more detail.
Bob
This topic is locked and no more replies can be posted.
