none
HTML email signature RRS feed

  • Question

  • I have created an HTML signature that contains some CSS. I have mostly used tables for layout. The CSS does not appear to be accepted by Outlook. I undertsnd that Outlook's support for CSS is very limited. Can somone provide some solutions for the following situations please:

    1. Centering span (containing text) within table cell.
    2. Removing extra spacing after (to right) image. 
    3. Centering image (with link tag around it) within a table cell.
    4. Vertically center image within table cell
    5. Add font colour, size and hopefully font-family.

    Thanks in advance for answering.

    Friday, July 21, 2017 12:26 AM

All replies

  • Hello,

    I suggest you create your expected result in mailbody and then output its HTML body and then go to %AppData%\Microsoft\Signatures, replace the htm of your signature.

    You could use the following code to output your expected signature.

    Dim fso As Object
    Set fso = CreateObject("Scripting.FileSystemObject")
    Dim oFile As Object
    Set oFile = fso.CreateTextFile("D:\htmlbody.txt")
    oFile.WriteLine mymail.HTMLBody
    oFile.Close
    Set fso = Nothing
    Set oFile = Nothing
    End If

    Regards,

    Celeste


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, July 24, 2017 9:12 AM
    Moderator