In Inky HTML, the `<button>` tag creates all of this markup for you.
```inky_example
-<button href="zurb.com">Button</button>
+<button href="#">Button</button>
```
+<div class="callout primary">
+- It's important to add an `href` attribute to your `<button>`'s to ensure that Outlook.com will not display `[undefined]` in your rendered email.<br>
+- Office 365 and Outlook.com require a valid url in the href attribute or you can use the # placeholder.
+</div>
+
---
## Sizing
To create an expanded button (full width of it's container), add the class `.expanded` to the outer `<table>` of the button, and wrap a `<center>` tag around the `<a>`.
-In Inky HTML, add the `.expanded` class to the `<button>` tag.
+In Inky HTML, add the `.expanded` class to the `<button>` tag. If you want the button to be expanded on small only, add the `.small-expanded`.
```inky_example
<row>
<column>
- <button href="zurb.com" class="expanded">Expanded Button</button>
+ <button href="#" class="expanded">Expanded Button</button>
+ <button href="#" class="small-expanded">Expand small only</button>
</column>
</row>
```
Change the background color of a button by adding the class `.secondary`, `.success`, `.warning`, or `.alert` to the outer `<table>` (or the `<button>` tag in Inky HTML).
```inky_example
-<button href="zurb.com" class="secondary">Secondary Button</button>
-<button href="zurb.com" class="success">Success Button</button>
-<button href="zurb.com" class="warning">Warning Button</button>
-<button href="zurb.com" class="alert">Alert Button</button>
+<button href="#" class="secondary">Secondary Button</button>
+<button href="#" class="success">Success Button</button>
+<button href="#" class="warning">Warning Button</button>
+<button href="#" class="alert">Alert Button</button>
```
---
<button href="#" class="rounded">Round</button>
```
-
-<div class="callout primary">
-- It's important to add an `href` attribute to your `<button>`'s to ensure that Outlook.com will not display `[undefined]` in your rendered email.<br>
-- Office 365 and Outlook.com require a valid url in the href attribute or you can use the # placeholder.
-</div>
</row>
<row>
<columns small="12" large="12">
- <button href="http://zurb.com" href="http://zurb.com" class="expand">I expand</button>
+ <button href="http://zurb.com" class="expand">I expand</button>
</columns>
</row>
<row>
<columns small="12" large="12">
Expand small only with center tag
<center>
- <button href="http://zurb.com" href="http://zurb.com" class="small-expand">Expand small only</button>
+ <button href="http://zurb.com" class="small-expand">Expand small only</button>
</center>
</columns>
</row>
<columns small="12" large="12">
Expand small only
<center>
- <button href="http://zurb.com" href="http://zurb.com" class="small-expand">Expand small only</button>
+ <button href="http://zurb.com" class="small-expand">Expand small only</button>
</center>
</columns>
</row>