Skip to content

Bare minimum to make email responsive on small screens. #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 28, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 26 additions & 11 deletions newsletter.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
****************************************************
***************************************************/
@media only screen and (max-device-width: 480px) {
/* Bare minimum to make email responsive on small screens. */
body[yahoo] table { width: 100% !important; }
body[yahoo] .img_100 {
width: 100% !important;
height: auto !important;
}
/* Part one of controlling phone number linking for mobile. */
a[href^="tel"], a[href^="sms"] {
text-decoration: none;
Expand Down Expand Up @@ -141,7 +147,7 @@
</style>
<![endif]-->
</head>
<body style="background-color:#FFFFFF">
<body yahoo="fix" style="background-color:#FFFFFF">
<!-- Wrapper/Container Table: Use a wrapper table to control the width and the background color consistently of your email. Use this approach instead of setting attributes on the body tag. -->
<table cellpadding="0" cellspacing="0" border="0" id="backgroundTable">
<tr>
Expand All @@ -158,7 +164,7 @@
<table width="600" cellpadding="0" cellspacing="0" border="0">
<tr><td height="50"></td></tr>
<tr>
<td><img src="logo.png" width="600" height="153" /></td>
<td><img src="logo.png" width="600" height="153" class="img_100" /></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" style="font-family:helvetica,arial,sans-serif;line-height:28px;color:#7D787F;">
Expand Down Expand Up @@ -255,16 +261,25 @@ <h2 style="font-size:28px;color:#E37B6E;line-height:34px;">

<table cellpadding="0" cellspacing="0" border="0" width="550">
<tr>
<td>17/08</td>
<td>Talk</td>
<td>Boston, MA</td>
<td><a style="color:#E37B6E;" href="http://www.northeastphp.org/talks/view/10/Introduction-to-Laravel">Introduction to Laravel</a></td>
<td valign="top">17/08</td>
<td width="2%"></td>
<td valign="top">Talk</td>
<td width="2%"></td>
<td valign="top">Boston, MA</td>
<td width="2%"></td>
<td valign="top"><a style="color:#E37B6E;" href="http://www.northeastphp.org/talks/view/10/Introduction-to-Laravel">Introduction to Laravel</a></td>
</tr>
<tr>
<td>30/08 - 31/08</td>
<td>Conference</td>
<td>Amsterdam</td>
<td><a style="color:#E37B6E;" href="http://laracon.eu">Laracon EU 2013</a></td>
<td colspan="7">&nbsp;</td>
</tr>
<tr>
<td valign="top">30/08 - 31/08</td>
<td width="2%"></td>
<td valign="top">Conference</td>
<td width="2%"></td>
<td valign="top">Amsterdam</td>
<td width="2%"></td>
<td valign="top"><a style="color:#E37B6E;" href="http://laracon.eu">Laracon EU 2013</a></td>
</tr>
</table>

Expand Down Expand Up @@ -319,4 +334,4 @@ <h2 style="font-size:28px;">
}
</style>
</center></body>
</html>
</html>