--- title: Button description: Buttons are convenient tools when you need more traditional actions. To that end, Foundation has many easy to use button styles that you can customize or override to fit your needs. sass: scss/components/_button.scss --- Creating a bullet-proof button that works in all email clients requires a table nested inside of a table. Put the class `.button` on the outer ``. Inside of the inner table, put an `` with an `href` attribute containing your link. In Inky HTML, the ` ```
- It's important to add an `href` attribute to your `
--- ## Sizing By default, buttons are sized by the content and padding within them. You can also size a button according to it's parent container (see Expanded section). Buttons can be made larger or smaller by adding the class `.tiny`, `.small`, or `.large` to a button's outer `
`. In Inky HTML, add the same class to the ` ``` Don't forget the `href=""` ;) --- ## Expanded To create an expanded button (full width of it's container), add the class `.expanded` to the outer `
` of the button, and wrap a `
` tag around the ``. In Inky HTML, add the `.expanded` class to the ` ``` --- ## Coloring Change the background color of a button by adding the class `.secondary`, `.success`, `.warning`, or `.alert` to the outer `
` (or the ` ``` --- ## Radius and Round Creating buttons with a radius or rounded edges (like a pill) can be achieved by adding the `.radius` or `.rounded` class to a button. *Note - border-radius is not supported on Outlook 2000-2013, Yahoo! Mail, and Android 4+ (Gmail)* *Note - In order to create `.radius` and `.rounded` buttons, the border needs to be removed.* ```inky_example ```