Skip to content

Commit

Permalink
Updated spacer.md to include size-sm/size-lg attributes
Browse files Browse the repository at this point in the history
See PR here: foundation/inky#36
  • Loading branch information
Ethan May authored and jsit committed Nov 8, 2017
1 parent fd68b76 commit 071ef8f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/pages/spacer.md
Expand Up @@ -14,13 +14,21 @@ Vertical spacing between email clients is not as simple as it sounds, in fact, i

The spacer is used to create vertical spacing between elements. The size `size="x"` attribute allows you to set the height in pixels of vertical spacing you need.

When using [Inky](inky.html) HTML, the `<spacer>` tag will create this structure for you. You can use them between rows, containers or inside wrappers, rows, columns, and containers.
When using [Inky](inky.html) HTML, the `<spacer>` tag will create this structure for you. You can use them between rows, containers or inside wrappers, rows, columns, and containers. In this example, this spacer will create 100px of vertical spacing:

```inky_example
<p>Stuff on top</p>
<spacer size="100"></spacer>
<p>Stuff on bottom</p>
```

In this example, this spacer will create 100px of vertical spacing.
The Inky `<spacer>` tag also allows you to specify contextual spacer sizes for small or large screens. In the example below, there will be 40px of vertical spacing on small screens, and 100px of spacing on large screens.


```inky_example
<p>Stuff above...</p>
<spacer size-sm="40" size-lg="100"></spacer>
<p>...stuff below.</p>
```

Specify both `size-sm` and `size-lg` or use just one of those attributes to render a spacer only on the corresponding size screen.

0 comments on commit 071ef8f

Please sign in to comment.