Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Email template - remove center justification in Thunderbird

Email template - remove center justification in Thunderbird

Views: 4,370

Results 1 to 8 of 8
28 Feb 2011, 8:00 PM
#1
ufi911 avatar

ufi911

New Zenner

Join Date:
Jan 2010
Posts:
22
Plugin Contributions:
0

Email template - remove center justification in Thunderbird

With both my order confirmation and order status emails, there is some center justification I can't seem to get rid of?

When you "reply" to one of the emails, it defaults to center justification and really looks ugly and makes a mess.

I've tried several times to edit the email templates in the \email folder, but can't seem to get rid of the center justification. I actually can't find a reference to center justification anywhere?

Any ideas? I think it has something to do with the frame around it, but I'm not sure how to change it.

Thanks,

-John

28 Feb 2011, 10:34 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Email template - remove center justification in Thunderbird

Using the default email templates that come with a fresh install of Zen Cart I can't seem to find any emails that are arriving center-justified, nor any which suddenly "become" center-justified when clicking "Reply".

So, this begs the question: what's different with yours?

1 Mar 2011, 2:38 AM
#3
ufi911 avatar

ufi911

New Zenner

Join Date:
Jan 2010
Posts:
22
Plugin Contributions:
0

Re: Email template - remove center justification in Thunderbird

I'm not sure either. I use thunderbird for an email client, but replying to other emails doesn't default to center justified???

I wondered if it was the email client, until I checked other emails?

I'm at a loss.

Thanks,

-John

1 Mar 2011, 4:18 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Email template - remove center justification in Thunderbird

Oh! Geez. Wow. I can't believe nobody else has ever mentioned this issue!
It's unique to Thunderbird. From my observations over the years it doesn't happen in Outlook, YahooMail, Hotmail, Gmail, Apple Mail, and others.

The fix:
Edit each of your email_template_xxxxxxxxx.html files in your /email/ folder, using a plain text editor.
You'll find a CSS line around line 7 (varies with each file) that looks like this:

body {background-color:#ffffff; color:#000000; font-family:Verdana, Arial, Helvetica, sans-serif; [B]text-align:center;[/B]}

Simply remove the text-align:center; near the end of that line.

We'll incorporate a fix for this in a future version, probably v2.0.

1 Mar 2011, 4:22 AM
#5
ufi911 avatar

ufi911

New Zenner

Join Date:
Jan 2010
Posts:
22
Plugin Contributions:
0

Re: Email template - remove center justification in Thunderbird

Thanks DrByte. I'm glad I found an interesting nugget.

Thank you much for the fix!

-John

2 Mar 2011, 4:18 AM
#6
ufi911 avatar

ufi911

New Zenner

Join Date:
Jan 2010
Posts:
22
Plugin Contributions:
0

Re: Email template - remove center justification in Thunderbird

I made the changes you recommended. Worked like a champ.

Thanks again,

-John

15 Jun 2011, 7:08 PM
#7
rebekah avatar

rebekah

Zen Follower

Join Date:
Mar 2006
Posts:
183
Plugin Contributions:
0

Re: Email template - remove center justification in Thunderbird

THANK YOU! You just saved me a million keystrokes! I thought it must just be Thunderbird.

No more Shift+Click+Alt+a+o+l+Ctrl+home!!!! Yipee!!!

26 Jun 2011, 12:49 PM
#8
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Email template - remove center justification in Thunderbird

Thank you.

Center justified has bugged us for a while but was not high on the list for any action.

That fixed everything. Using Outlook Express and Windows Live Mail as the email client.