How to get rid of yellow padding on images in iphone mobile view
When designed am email in Emarsys, iphone mobile views were horrible. Yellow padding on either side of the image was pestering. Following efforts did not work.
<td style="background-color: #ffffff;" >
<table cellspacing="0" cellpadding="0" border="0" width="100%" bgcolor="#ffffff">
<tr bgcolor="#ffffff">
CSS - .iph {padding:0 !important;}
The solution was simple. Add an exclusive image for mobile view. You have to do essential CSS tricks to hide desktop image and show mobile image in mobile view. The solution is discussed elsewhere in the blog.
<td style="background-color: #ffffff;" >
<table cellspacing="0" cellpadding="0" border="0" width="100%" bgcolor="#ffffff">
<tr bgcolor="#ffffff">
CSS - .iph {padding:0 !important;}
The solution was simple. Add an exclusive image for mobile view. You have to do essential CSS tricks to hide desktop image and show mobile image in mobile view. The solution is discussed elsewhere in the blog.


Comments