]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
adds menu centering example to alignment
authorRafiBomb <rafi@zurb.com>
Wed, 4 May 2016 15:39:15 +0000 (08:39 -0700)
committerRafiBomb <rafi@zurb.com>
Wed, 4 May 2016 15:39:15 +0000 (08:39 -0700)
docs/pages/alignment.md

index 15a1fc3d71dc705e421a7a40400ec8d3381c44c6..2d4ad8a2517652e13ef030ef9152c4949c4cf68f 100644 (file)
@@ -1,6 +1,6 @@
 ---
 title: Alignment
-description: Centering, images, text and buttons in HTML emails made easy.
+description: Centering, images, text, buttons, and menus in HTML emails made easy.
 ---
 
 Foundation includes a handful of helpful alignment classes to add common positioning behaviors to elements.
@@ -172,3 +172,20 @@ Tables by nature take up as much space is available to them. Because of this, ce
 ```
 
 If you don't add a size attribute like `small="x"` then the columns will be equal width.
+
+---
+
+## Centering a Menu
+
+Centering the menu is a common practice. Wrapping the menu in `<center>` tags will achieve this.
+
+```inky_example
+<center>
+  <menu>
+    <item href="http://zurb.com">Item</item>
+    <item href="http://zurb.com">Item</item>
+    <item href="http://zurb.com">Item</item>
+  </menu>
+</center>
+```
+<br>