Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder Kevin_M_Schafer's Avatar
    Join Date
    Apr 2011
    Location
    Fairfax, Minnesota, U.S.A.
    Posts
    482
    Thanks
    97
    Thanked 17 Times in 17 Posts

    Trying to create a horizontal signature with html for WLM

    Could I ask for html help for a Windows Live Mail signature? There's not a whole lot of information out there for horizontal signatures. All of the tutorials and articles I've seen are for vertical signatures, which users create with simple html inline styling. This type of coding produces a vertical, stacked signature, which takes up a lot of room.

    I know tables are taboo for content and should only be used for things like tabulation of numbers. However, tables seem to be accepted without disturbance in Windows Live Mail and are displayed accurately.

    Is there a way to horizontally center the contents in each of the three cells that I have created? Also, can the contents be vertically centered in each cell as well? I'm not that familiar with tables, and that's probably a good thing. I used a table wizard in my CoffeeCup html editor to create the one I'm trying to use.

    Any help would be greatly appreciated. If anyone has a better way to create a horizontal signature much easier than using a table, please let me know. I don't want to use a long graphic. I like flexible widths and such.

    Thanks,
    Kevin

    Code:
    <div style=" text-align: left; font-family: arial;"><table width="100%" height="132" border="1" cellpadding="0" cellspacing="0" style="border-color: #cccccc; border-style: solid; background-color: #E0F5FF;">
    <tr valign="top">
    <td style="border-color : #ffffff #E0F5FF #ffffff #ffffff; border-style: solid;"><br /><img src="http://96.9.48.31/e-mail-signature-images/kms.jpg" alt="me" title="me" width="90" height="90" hspace="0" vspace="0" align="left" border="1" />
    </td>
    <td style="border-color : #ffffff #E0F5FF #ffffff #E0F5FF; border-style: solid;"><br /><b>Business Name</b><br>My Name<br>email@emailadress.yay
    </td>
    <td style="border-color : #ffffff #ffffff #ffffff #E0F5FF; border-style: solid;"><br />555-555-5555<br>This Street South<br>P.O. Box 555<br>Anytown, Anystate 55555
    </td>
    </tr>
    </table>
    </div>
    My keyboard is an IBM from 1993 and I like it that way. | Who is Dan Well? Everyone always says I know Dan Well.Building a web page is like building a birdhouse. Put it up there and watch 'em come. | Maintaining the aspect ratio of an image is more important than having a cold orange pop.

  • #2
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    You can use CSS or old (and deprecated) attributes for this. I don't ever do HTML e-mails so I can't recommend one way over the other, but here they are...

    Vertical centering:
    Code:
    The CSS way:
    vertical-align:middle;
    
    The attribute way:
    valign="middle"
    Horizontal centering:
    Code:
    The CSS way:
    text-align:center;
    
    The attribute way:
    align="center"
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • Users who have thanked Rowsdower! for this post:

    Kevin_M_Schafer (03-08-2013)

  • #3
    Regular Coder Kevin_M_Schafer's Avatar
    Join Date
    Apr 2011
    Location
    Fairfax, Minnesota, U.S.A.
    Posts
    482
    Thanks
    97
    Thanked 17 Times in 17 Posts
    Thank you, Rowsdower!

    This is great. I appreciate your help on this.

    --Kevin
    My keyboard is an IBM from 1993 and I like it that way. | Who is Dan Well? Everyone always says I know Dan Well.Building a web page is like building a birdhouse. Put it up there and watch 'em come. | Maintaining the aspect ratio of an image is more important than having a cold orange pop.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •