Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
caseyjhol opened this issue May 12, 2022 · 0 comments
Labels
Outlook Windows, macOS, iOS, Android and Outlook.com

Comments

@caseyjhol
Copy link

caseyjhol commented May 12, 2022

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

@caseyjhol caseyjhol changed the title Setting margin-top or margin-bottom on a table adds padding to every cell within the table. Outlook: Setting margin-top or margin-bottom on a table adds padding to every cell within the table. May 12, 2022
@caseyjhol caseyjhol changed the title Outlook: Setting margin-top or margin-bottom on a table adds padding to every cell within the table. Windows Outlook: Setting margin-top or margin-bottom on a table adds padding to every cell within the table. May 12, 2022
@hteumeuleu hteumeuleu added the Outlook Windows, macOS, iOS, Android and Outlook.com label May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Outlook Windows, macOS, iOS, Android and Outlook.com
Projects
None yet
Development

No branches or pull requests

2 participants