Reply
Solution Provider
Posts: 7
Registered: ‎08-17-2012

Text in Gmail is centered, not left aligned

The text is left aligned within the template.  However, when I view the email in gmail text is centered.

 

I started from a template to eliminate errors due to my own code.  The template I selected is “Entertainment Promotion”, which is the first option after selecting the right-side side content in the layout menu.

 

I’ve tried three ways to left align the text, none worked.  I’ve read google uses inline styles so I haven’t touched the style sheets.

 

1. I sent the template as is.

 

2. In the DIV tag I put [style=”text-align: left”].  In the TD tag is [style=”text-align: left”] and [align=left].  The code is shown at the bottom.

 

3. Same as 2 but used [align=left] in DIV tag instead.

 

Example html code for attempt 2:

 

<TABLE style="DISPLAY: table" id=textEdit border=0 cellSpacing=0 cellPadding=0 width="100%"" isPart="true">>
<TBODY" isPart="true">>
<TR" isPart="true">>
<TD style="TEXT-ALIGN: left; PADDING-BOTTOM: 7px; PADDING-LEFT: 12px; PADDING-RIGHT: 12px; FONT-FAMILY: Times New Roman, Times, serif; COLOR: #ffffff; FONT-SIZE: 10pt; PADDING-TOP: 7px" vAlign=top align=left styleclass=" style_Content style_MainText"" isPart="true">>
<DIV style="TEXT-ALIGN: left"" isPart="true">><IMG border=0 hspace=10 vspace=5 align=right src="https://imgssl.constantcontact.com/letters/images/1101116784221/ENTERTAIN180G1_Guitarist_SI0895.jpg" width=180 height=120 optionname="ENTERTAIN180G1" " isPart="true">> text goes here <A style="FONT-FAMILY: Times New Roman, Times, serif; COLOR: #669cb8; FONT-SIZE: 10pt" href="http://www.cmitsolutions.com/inland-north-county" shape=rect styleclass=" style_MainLink"" isPart="true">>here</A" isPart="true">>.<BR" isPart="true">><BR" isPart="true">></DIV" isPart="true">></TD" isPart="true">></TR" isPart="true">></TBODY" isPart="true">></TABLE" isPart="true">>

 

Thanks in advance!

Solution Provider
Posts: 7
Registered: ‎08-17-2012

Re: Text in Gmail is centered, not left aligned

It turns out the error was not due to the code.

 

I had sent the email to my work email hosted on rackspace and viewed in outlook.  I then forwarded to my gmail account.  Somehow in this process the formatting occurred.  When I send directly to gmail all is fine.

Posts: 5,124
Topics: 677
Kudos: 300
Blog Posts: 350
Solutions: 150
Registered: ‎10-18-2010

Re: Text in Gmail is centered, not left aligned

Great! I'm glad you were able to resolve this on your own! Smiley Happy I was just looking into our common display issues FAQ to see if we had this in Gmail.

 

You can view that FAQ here.

 

Thanks for posting!

Marissa Rogers
Community & Social Media Support

If you find my post helpful, and it answers your question, please click "Accept as Solution".

Are you on Twitter? Follow me here
Moderator
Posts: 7,921
Registered: ‎02-20-2012

Re: Text in Gmail is centered, not left aligned

This post thread is archived, content is saved for education. Links will not be updated. If you need additional information please create a new post. 

Hannah M.
Community and Social Media Support

If you find my post helpful, and it answers your question, please mark it as an Accepted Solution

Are you on Twitter? Follow me here!