All emails should have a container element. This gives the email a maximum width for email clients on larger screens. It also orients the email in the center.
-A container is a full table, so it needs the tags `<table>` `<tbody>`, `<tr>`, and finally `<td>`. The class `.container` goes on the `<table>`.
+A container is a full table, so it needs the tags `<table>`, `<tr>`, and finally `<td>`. The class `.container` goes on the `<table>`.
```inky_example
-<container></container>
+<container>All the rows go here</container>
```
---
In Inky HTML, use the `<row>` tag to create a row.
```inky_example
-<row></row>
+<container>
+ <row>
+ Columns go here
+ </row>
+</container>
```
---
<th class="columns first last">
<table>
<tr>
- <th>This is a column.</th>
+ <th>This is a column. Columns contain your content.</th>
<th class="expander"></th>
</tr>
</table>
In Inky HTML, use the `<columns>` class to create a column.
```inky_example
-<columns>This is a column.</columns>
+<columns>This is a column. Columns contain your content.</columns>
```
### Sizing
In Inky HTML, set the attribute `small` or `large` on the `<columns>` tag with the size you want. If you don't fill in `small`, it will use 12 by default. If you fill in `small` but not `large`, `large` will use the same value as `small`.
-```inky_example
+```html
<columns small="12" large="6"></columns>
```
```inky_example
<row class="collapse">
- <columns large="6">These columns touch.</columns>
- <columns large="6">These columns touch.</columns>
+ <columns large="6"><img src="http://placehold.it/300x150/777777/&text=These columns touch" alt=""></columns>
+ <columns large="6"><img src="http://placehold.it/300x150/999999/&text=These columns touch" alt=""></columns>
</row>
```
```inky_example
<row>
- <columns large="3" class="large-offset-3">One</columns>
- <columns large="3">Two</columns>
+ <columns large="3" class="large-offset-3"><img src="http://placehold.it/150x150/999999/&text=offset column" alt=""></columns>
+ <columns large="3"><img src="http://placehold.it/150x150/999999" alt=""></columns>
</row>
```