Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8669839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:34:21+00:00 2026-06-12T18:34:21+00:00

Composing an HTML email we’ve encountered an odd issue where indents appear inside spans

  • 0

Composing an HTML email we’ve encountered an odd issue where indents appear inside spans for no apparent reason.

I’ve included the HTML below, but as far as I can see there is no padding, margin, etc applied to the spans. None of the inline styles seem like they could be the cause. Assuming I’m missing something very basic here.

Indents to the left of the bottom two phone numbers:
(picture is from a Windows 7 HTC phone test from the Litmus email testing app)
enter image description here

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
        <title>Title</title>
        <meta name="robots" content="noindex,nofollow" />
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
        <meta name="viewport" content="width=device-width" />

                  <style type="text/css">

@media only screen and (max-device-width: 480px) {
body img.banner {max-width: 300px !important; height: auto !important;}
table {max-width: 300px overflow:visible; width: auto; }
}

div, p, a, li, td { -webkit-text-size-adjust:none; }

span { padding: 0; margin: 0; }

.appleLinks a {color:#400400; text-decoration:none;}

.appleLinksGray a:link,.appleLinksGray a:visited {color:#808080;}

.appleLinksGrayClean a:link,.appleLinksGrayClean a:visited {color:#808080; text-decoration:none;}

</style> 
    </head>
    <body style="font-family: 'trebuchet ms', arial, helvetica, sans-serif; font-size: 12px;">
        <table style="background-color: #ffffff; margin: auto; font-family: 'trebuchet ms', arial, helvetica, sans-serif; font-size: 13px;" border="0" cellspacing="0" cellpadding="0" width="627">
            <tbody>
                <tr>
                    <td colspan="2"><img class="banner" src="" alt="Alt" width="625" height="100" /></td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: left; padding-bottom: 20px; padding-left: 20px; padding-right: 20px; font-family: 'trebuchet ms', arial, helvetica, sans-serif; padding-top: 20px; color: #400400;"><p>Dear ~goesBy~,<br />
                      <br>
                      Text</p>
                      <p>Regards,<br>
                        Text
                          <br>
                          <br>
                      </p>
                      <p><span class="appleLinks">Address<br>
<br>
5:00 – 7:00 pm
                     </span></p>
                      <p><b style="font-family: arial, helvetica, sans-serif; color:#000;">Name<br />
    </b><span style="font-family: arial, helvetica, sans-serif; white-space: nowrap; color: #808080; font-size: 8pt;">Manager<br />
      <br />
      </span><b><span style="font-family: 'times new roman', times, serif; color: #00644c; font-size: 10pt;"><br />
        COMPANY </span></b><br />
  <span class="appleLinksGrayClean" style="font-family: arial, helvetica, sans-serif; color: #808080; font-size: 8pt;">Address Line 1</span><br />
  <span class="appleLinksGrayClean" style="font-family: arial, helvetica, sans-serif; color: #808080; font-size: 8pt;">Address Line 2</span><br />
    <span class="appleLinksGray" style="font-family: arial, helvetica, sans-serif; color: #808080; font-size: 8pt;">111.111.1111</span><br />
    <span class="appleLinksGray" style="font-family: arial, helvetica, sans-serif; color: #808080; font-size: 8pt;">111.111.1111 direct</span><br />
    <span class="appleLinksGray" style="font-family: arial, helvetica, sans-serif; color: #808080; font-size: 8pt;">111.111.1111 mobile</span><br />
    <a href="mailto:person@example.com" style="font-family: arial, helvetica, sans-serif; color: #808080; font-size: 8pt;"><span class="appleLinksGray" >person@example.com</span></a></p></td>
                </tr>
                <tr>
                    <td style="padding-top: 20px;" colspan="2">
                    <div style="text-align: left; font-family: verdana; color: #333333; font-size: 9px;">Copyright</div>
                    </td>
                </tr>
            </tbody>
        </table>

    </body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T18:34:23+00:00Added an answer on June 12, 2026 at 6:34 pm

    Did you check for hidden characters? Sometimes when you copy paste code, special characters get included. Mostly from a character set difference. Try deleting all white space between the html tags.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am composing an HTML email using a service (MailChimp). The way that MailChimp
In my app, I am composing an HMTL email message with the 3.0+ MFMailComposeViewController
I'm planning on composing HTML mail for a mailing list. How should I format
I'm trying to send out a Plain/HTML multipart email out and I'm currently using
I'm currently composing an HTML-Mail using MFMailComposer. Everything like Background Color etc. is working
I'm using the inputRichText component for composing HTML-formatted messages in a system I'm working
Why webmails (like Gmail) sends MIME messages using multipart/alternative subtype (when composing in HTML)
I have the below HTML code, also I will have a textbox for entering
I have DHTML content inside a fieldset . This includes plain html, nested objects
Using the client and server examples found here: http://www.winsocketdotnetworkprogramming.com/winsock2programming/winsock2advancedmailslot14.html Compiling them with VS2008, running

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.