Skip to content

Webkit(Safari + Apple Mail) adds 1px width for an empty cells #45

@dudeonthehorse

Description

@dudeonthehorse

This is an example of responsive table layout

<table width="100%">
 <tr>
  <th style="font-size: 0; padding: 0;">&nbsp;</th>
  <th width="600" style="padding: 0;">
   <!-- content -->
  </th>
  <th style="font-size: 0; padding: 0;">&nbsp;</th>
 </tr>
</table>

For correct responsibility we should use viewport

<meta name="viewport" content="width=device-width, initial-scale=1.0">

Screenshot with example of the problem
screen shot 2018-06-09 at 13 46 32

Source code of email from screenshot https://gist.github.com/dudeonthehorse/77e33aa3a1797883b88a6eb11c969b72

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions