Results 1 to 4 of 4

Thread: HTML emails - zooming in on Android

  1. #1
    Join Date
    Dec 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HTML emails - zooming in on Android

    I have been writing my first HTML email template with tables. I am just trying to get it to fit to screen on mobile devices.

    When I have checked on Android the email is always initially zoomed in and the user needs to pinch it out to get it to fit the screen size. The same happens on the iPhone 6 but the older versions of iPhone display fine.

    I tried adding this inline style:

    style='width:100%; min-width:600px;'

    But it doesn’t make a difference. I have also tried this:

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

    Any help to make the email fit to screen on Android and iPhone 6 is much appreciated.

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    The tables probably are the source of the problem, because td's are always put next to each other unless you give them display: block, which you dont't want, I guess. So the end result is something that is often too broad for small screens.
    Use divs and appropriate css for the divs instead, see http://www.w3schools.com/html/html_layout.asp.
    Or keep the tables and specify the width of the td's in percentages.

  3. #3
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    You might need to rethink how you make responsive email newsletters. Email is one of those times where fluid tables are probably still better and more consistent than divs - think tables with % cell measurements and a max width of about 600px.

    Here are some resources that should help;
    http://alistapart.com/article/can-email-be-responsive
    http://webdesign.tutsplus.com/articl...ebdesign-12978
    http://www.creativebloq.com/responsi...emails-2132830
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  4. #4
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Beverleih's references confirm my bad experiences with HTML emails: they are a pain, and I wonder if the pain is worth it.
    No javascript allowed, no css, just static code.
    So no 'read more' inside HTML emails, no videos, no images that show after a click on a link etc.
    That's why I would prefer a 'normal' email message like 'Dear customer, our latest newsletter can be found HERE', where HERE is a link to a standard modern HTML-page. You could even replace HERE with a nice picture or a video-link (the way YouTube does it).

Similar Threads

  1. an e-card program that sends html emails
    By lrickyutah in forum Looking for such a script or service
    Replies: 0
    Last Post: 02-05-2010, 04:32 PM
  2. Sending HTML Emails through form.
    By lrickyutah in forum PHP
    Replies: 0
    Last Post: 03-22-2009, 04:29 AM
  3. create html emails
    By evan in forum HTML
    Replies: 4
    Last Post: 03-18-2009, 06:56 AM
  4. How to do zooming
    By fung in forum Looking for such a script or service
    Replies: 3
    Last Post: 03-15-2007, 08:39 PM
  5. image zooming
    By ngo van hinh in forum JavaScript
    Replies: 1
    Last Post: 10-10-2005, 05:54 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •