title: Remove default Android padding from HTML emails
body: <p>I have a responsive email layout where some elements stretch the entire width of the viewport, whatever that may be. </p>
  
  <p>In Android (native mail and Gmail app on 4.4 at least) There appears to be a ~10px padding on either side. Is there any property or trick for negating this?</p>
  
  <p>(I feel like this question should have been asked somewhere already, but searches provide only completely unrelated HTML email margin issues, so sorry if this is a duplicate). </p>
  
  <p><strong>Tried</strong></p>
  
  <p>Cancelling out the body margin. This affected the layout but did not fix the issue. The result of the following code simply removed the padding on the left but doubled the padding on the right in the native app. </p>
  
  <pre><code>html, body{
      padding:0 !important;
      margin:0 !important;
      width:100% !important;
  }
  div[style*="margin: 16px 0"] { 
      margin:0 !important; 
      font-size:100% !important; 
      width:100% !important; 
  }
  </code></pre>
  
  <p>No change in the Gmail app. </p>
  
  <p><strong>More insights</strong></p>
  
  <p>It seems the body remains the same width in the viewport regardless of width settings. If you set the width to 1000px, the email is shrunk to fit in the area with the margin on either side. The margin can be cancelled out using margin:0 on the body but the body stays the same size, resulting in the extra space appearing on the right. </p>
  
  <p>I believe that the client is programmatically resizing the email to fit in a given width. The only way around this is likely to somehow "trick" the client. Nothing seems to have worked yet...</p>