...

View Full Version : HTML email in blackberry aligns all text center



msaz87
11-04-2011, 07:01 PM
Hey all,

I'm putting together an HTML email and when checking it with a Blackberry, all the text is aligning center due to the setup to make the email itself center. I've tried adding <p align="left">, a <div align="left"> and text-align as well to no avail. Any help is appreciated.

Thanks



<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>xxx</title>
<style type="text/css">
body {
font-family: arial;
margin: 0;
padding: 0;
color: #ffffff;
}
p {
font-family: arial;
font-size: 17px;
margin-bottom: 1em;
}
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<table width="600px">
<tr>
<td style="color: #ffffff; padding: 0; margin: 0; font-size: 17px; font-family: arial">
<table width="100%" cellpadding="20" style="background-color: #002030">
<tr>
<td style="text-align: left; color: #ffffff; font-size: 17px; font-family: arial" align="left">
<div align="left">
<span style="font-size: 48px; font-weight: bold">xxx </span><span style="font-size: 48px">xxx</span><br/>
<span style="color: #fcd127; font-weight: bold">xxx</span><br/>
xxx<br/>
xxx
<br/>
xxx<br/>
<br/>
<span style="font-size: 15px; font-weight: bold">xxx</span>
</div>
</td>
</tr>
</table>
<img src="hotel.jpg" title="" alt="" border="0">
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

rhami
03-18-2013, 06:52 PM
Did you have any luck solving this? I have the same issue

Obsidian
03-18-2013, 07:53 PM
Greetings,

I do see that the first table's column is set as <td align="center"> that will center all of the text and other content.

You may try adding the CSS "text-align: left" to the second table's first column in the inline CSS.

I hope this helps.

rhami
03-18-2013, 08:16 PM
No luck still



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum