HTML CSS examples for CSS Layout:Layout
Wrapper and container do different layout
<html> <head> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="css/foundation-emails.css"> </head> <!--from www . j ava2 s .c o m--> <body> <table class="body"> <tbody> <tr> <td class="center" align="center" valign="top"> <table align="center" class="wrapper header float-center" style="background-color:red"> <tbody> <tr> <td class="wrapper-inner"> <table align="center" class="container" style="background-color:transparent"> <tbody> <tr> <td> <!-- single column row --> <table class="row collapse"> <tbody> <tr> <th>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tortor in, pharetra nisl. Maecenas aliquam luctus mauris, vitae venenatis diam imperdiet vel. Donec tortor diam, pretium vitae nibh vitae, consectetur lacinia sem. Proin luctus facilisis volutpat. Ut semper sit amet purus quis ornare. Quisque lobortis ne</th> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <table align="center" class="wrapper header float-center" style="background-color:green"> <tbody> <tr> <td class="wrapper-inner"> <table align="center" class="container" style="background-color:transparent"> <tbody> <tr> <td> <!-- two column row --> <table class="row collapse"> <tbody> <tr> <th class="small-6 large-6 columns first"> <table> <tbody> <tr> <th> <p>Lorem</p> </th> </tr> </tbody> </table> </th> <th class="small-6 large-6 columns last"> <table> <tbody> <tr> <th> <p>Lorem</p> </th> </tr> </tbody> </table> </th> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </body> </html>