Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Table borders in HTML email on iPad and iPhone

I have a pixel border showing between table rows when doing email testing. iPhone and iPad only. I have tried:

* {
margin:0;
padding:0;

}

I have also tried: this makes the border blue instead of white but I want the border removed completely?

like image 975
Thurston Avatar asked Apr 12 '11 15:04

Thurston


People also ask

How do I enable table Borders in HTML?

To create table border in HTML, the border attribute was used. But the introduction of HTML5, deprecated the border tag. Create table border using the CSS property border. Set table border as well as border for <th> and <td>.

Can we create a table border in HTML?

HTML tables can have borders of different styles and shapes.

How do I change table borders in Word for IPAD?

Change the border: Tap Cell Border, then tap a border layout to choose which lines you want to format. Tap Border Style, then choose a border style. Or, use the controls under “Cell border” to define your own style. Tip: To select multiple borders, tap a border layout, then touch and hold additional layouts.


2 Answers

This apparently happens when you've applied background colors or images to individual table cells. I removed individual bgcolor and background-color references from the tables with mystery borders, and the problem went away!

Source: iPhone fail: The trouble with table borders and HTML email (Campaign Monitor)

like image 106
Matt Stein Avatar answered Sep 27 '22 23:09

Matt Stein


Try adding this:

<meta content='width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;' name='viewport' />

This will stop users from zooming in. I found this works too:

<meta content='width=device-width; initial-scale=1.0;' name='viewport' />

But, it looks broken again when you zoom in. Initial load worked, so I was happy with the second option.

like image 41
pondmouse Avatar answered Sep 28 '22 00:09

pondmouse