Last active
March 28, 2016 07:04
-
-
Save htmlr/0234762677117e66902e to your computer and use it in GitHub Desktop.
Stacking and re-ordering in responsive emails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .feature-table { | |
| width:600px; | |
| } | |
| .feature-desc { | |
| } | |
| .feature-image { | |
| } | |
| @media only screen and (max-width:500px){ | |
| .feature-table, tr, td { | |
| display:block; | |
| width:100%; | |
| } | |
| td[class=feature-image] { | |
| display:table-header-group; | |
| } | |
| td[class=feature-desc] { | |
| display:table-footer-group; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <table class="feature-table"> | |
| <tr> | |
| <td class="feature-desc">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam semper enim et congue condimentum. Suspendisse vel dictum ante, cursus sodales mauris. </td> | |
| <td class="feature-image"><img src="http://placehold.it/150x150"></td> | |
| </tr> | |
| </table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment