]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
adds centered button example
authorRafiBomb <rafi@zurb.com>
Mon, 21 Mar 2016 05:36:09 +0000 (22:36 -0700)
committerRafiBomb <rafi@zurb.com>
Mon, 21 Mar 2016 05:36:09 +0000 (22:36 -0700)
docs/pages/alignment.md

index f39871f25711f571d289866c4e88f2faff797866..f1b080cc3b5ed9ab715afb8ecc740c5a3db59912 100644 (file)
@@ -119,6 +119,22 @@ You can also align images to the left or the right.
 </container>
 ```
 
+## Centering a button
+
+Wrap the button with `<center>` tags to center it.
+
+```inky_example
+<container>
+  <row>
+    <columns>
+      <center>
+        <button href="#">Centered Button</button>
+      </center>
+    </columns>
+  </row>
+</container>
+```
+
 ## Centering columns
 
 Tables by nature take up as much space is available to them. Because of this, centering columns can be done by adding empty columns to left and right of the column to be centered.