Skip to content

Windows Outlook: Setting margin-top or margin-bottom on a table adds padding to every cell within the table. #114

@caseyjhol

Description

@caseyjhol

Confirmed this behavior in Outlook 2007 and Outlook 365.

margin-left and margin-right work as expected.

For example, the following HTML:

    <table>
      <tbody>
        <tr>
          <td style="border: 1px solid #ddd;">1-1</td>
          <td style="border: 1px solid #ddd;">1-2</td>
        </tr>
        <tr>
          <td style="border: 1px solid #ddd;">2-1</td>
          <td style="border: 1px solid #ddd;">2-2</td>
        </tr>
      </tbody>
    </table>

    <br />
    <br />

    <table style="margin: 50px;">
      <tbody>
        <tr>
          <td style="border: 1px solid #ddd;">1-1</td>
          <td style="border: 1px solid #ddd;">1-2</td>
        </tr>
        <tr>
          <td style="border: 1px solid #ddd;">2-1</td>
          <td style="border: 1px solid #ddd;">2-2</td>
        </tr>
      </tbody>
    </table>

results in:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    OutlookWindows, macOS, iOS, Android and Outlook.com

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions