Html table cells not responsive on iphone emails -


i'm setting html template client having fun tables, yay.

responsiveness previews correctly in desktop browser, when sent iphone, td's not scaling percentage applied, defaulting content size. example i've supplied images (trying setup nav template), applies text well.

the goal 600px centered content area background of email light gray. under 600px, nav cells should responsively scale 25% of viewport, text content cells shrink text size, , images expand image size.

anyone know way on iphones set table cell widths percentage of viewport?

    <!doctype html>     <html xmlns="http://www.w3.org/1999/xhtml">     <head>         <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1 user-scalable=no">         <style>             .wrapper {                 width: 100%;                 text-align: center;                 background-color: #ebebeb;             }             .container {                 width: 600px;                 max-width: 600px;                 margin: auto;             }             .header {                 background-color: #ffffff;                 width: 100%;             }             @media (max-width: 600px) {                 html, body, .wrapper, .container, .header, .wrapper-td, .container-td {                     width: 100% !important;                     max-width: 100% !important;                 }             }         </style>     </head>     <body>         <table class="wrapper">             <tr>                 <td class="wrapper-td">                     <table class="container">                         <tr>                             <td class="container-td">                                 <table class="header">                                     <tr>                                         <td style="width: 25%;">                                             <a href="#"><img src="http://s9.postimg.org/a3mogw58b/nav_membership.jpg" style="width: 100%;" /></a>                                         </td>                                         <td style="width: 25%;">                                             <a href="#"><img src="http://s9.postimg.org/a3mogw58b/nav_membership.jpg" style="width: 100%;" /></a>                                         </td>                                         <td style="width: 25%;">                                             <a href="#"><img src="http://s9.postimg.org/a3mogw58b/nav_membership.jpg" style="width: 100%;" /></a>                                         </td>                                         <td style="width: 25%;">                                             <a href="#"><img src="http://s9.postimg.org/a3mogw58b/nav_membership.jpg" style="width: 100%;" /></a>                                         </td>                                     </tr>                                 </table>                             </td>                         </tr>                     </table>                 </td>             </tr>         </table>     </body>     </html> 

try add html, body{margin:0; padding:0} style, , cellpadding="0" cellspacing="0" tables.

codepen: http://codepen.io/bidstrup/pen/lvobpg


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -