Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2012
    Posts
    10
    Plugin Contributions
    0

    Default Email header alignment

    I'm trying to align my logo in emails but I'm having trouble with it. Every time I try and send a test email it says: ERROR: Failed sending email to: "xxxxxxxx" [email protected]

    This is the code I've tried:


    HTML Code:
      <!-- Header Section -->
      <div class="header">
      <img src="http://www.lusttoys.info/email/header.png" alt="logo" align="center"/>
      </div>
    Also:

    HTML Code:
      <!-- Header Section -->
      <div class="header">
      <img src="http://www.lusttoys.info/email/header.png" alt="logo" align="middle"/>
      </div>
    Any ideas? I'm stumped!

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,152
    Plugin Contributions
    11

    Default Re: Email header alignment

    If you look at the beginning of the emails, there's an embedded .header style. You need to set it correctly for the image to center.

  3. #3
    Join Date
    Aug 2012
    Posts
    10
    Plugin Contributions
    0

    Default Re: Email header alignment

    Quote Originally Posted by dbltoe View Post
    If you look at the beginning of the emails, there's an embedded .header style. You need to set it correctly for the image to center.
    After I posted this I did try changing the CSS and I managed to change font sizes and colours for the .body and they seemed to work fine but when I tried changing the .header for the logo, my changes weren't reflected in the test email.

    I didn't get the sending error, just no changes in the email.

    I used align="center"
    Is that correct?

  4. #4
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default Re: Email header alignment

    text-align: center;

  5. #5
    Join Date
    Aug 2012
    Posts
    10
    Plugin Contributions
    0

    Default Re: Email header alignment

    Still no joy! Now I'm completely stumped! I thought it could have been the CloudFlare cache so I cleared that but nope

    This is the code I have:

    HTML Code:
    <style type="text/css">
    
    body {background-color:#FFF; color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; text-align:center;}
    
    a:link {color:#0066cc;}
    
    a:hover {background-color:#eeeecc; color:#0066cc;}
    
    a:visited {color:#0066cc;}
    
    .holder {background-color:#f9f9f9; border:1px solid #9a9a9a; font-size:9px; text-align:left; width:550px;}
    
    .header {
    	font-size:10px;
    	padding:0px;
    	width:550px;
    	text-align: center;
    }
    
    .content {font-size:16px; padding:5px; width:550px;}
    
    .footer {
    	border-top:1px solid #9a9a9a;
    	font-size:9px;
    	margin-top:10px;
    	width:550px;
    }
    
    .disclaimer {background-color:#f9f9f9; border:1px solid #cccccc; font-size:7px; margin-top:10px; padding:5px; width:550px;}
    
    .disclaimer1 {color:#666666; padding:5px;}
    
    .disclaimer1 a:link {color:#666666;}
    
    .disclaimer1 a:visited {color:#666666;}
    
    .disclaimer2 {color:#666666; padding:5px;}
    
    .copyright {
    	border-bottom:0px solid #fff;
    	padding:5px;
    	text-align: center;
    }
    
    </style>
    Edited to add: In Dreamweaver it shows as aligned correctly.
    Last edited by maz2390; 19 Aug 2012 at 04:23 PM.

 

 

Similar Threads

  1. header image alignment
    By dstegall in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 10 Sep 2011, 01:51 AM
  2. header alignment
    By justerrt in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 6 Jul 2010, 02:48 PM
  3. Header alignment problem
    By panuma in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 14 Jun 2010, 11:46 PM
  4. Header alignment
    By webby2009 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 Dec 2009, 10:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR