From 915d0b4a15b9549941dbfd3e5f2233c42642ef2b Mon Sep 17 00:00:00 2001 From: kennedybaird Date: Tue, 1 Aug 2017 01:20:19 +0700 Subject: [PATCH] include example for .is-centered (#978) and for .is-multiline and .is-centered --- docs/documentation/grid/columns.html | 97 ++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) diff --git a/docs/documentation/grid/columns.html b/docs/documentation/grid/columns.html index 8a508361..460586e3 100644 --- a/docs/documentation/grid/columns.html +++ b/docs/documentation/grid/columns.html @@ -494,6 +494,103 @@ doc-subtab: columns {% endhighlight %} +

Centering columns

+
+

While you can use empty columns (like <div class="column"></div>) to create horizontal space around .column elements, you can also use .is-centered on the parent .columns element: +

+ +
+
+

+ is-half
+ is-narrow +

+
+
+ +{% highlight html %} +
+
+

+ is-half
+ is-narrow +

+
+
+{% endhighlight %} + +
+

Use with .is-multiline to create a flexible, centered list (try resizing to see centering in different viewport sizes): +

+ +
+
+

+ is-narrow
+ First Column +

+
+
+

+ is-narrow
+ Our Second Column +

+
+
+

+ is-narrow
+ Third Column +

+
+
+

+ is-narrow
+ The Fourth Column +

+
+
+

+ is-narrow
+ Fifth Column +

+
+
+ + +{% highlight html %} +
+
+

+ is-narrow
+ First Column +

+
+
+

+ is-narrow
+ Our Second Column +

+
+
+

+ is-narrow
+ Third Column +

+
+
+

+ is-narrow
+ The Fourth Column +

+
+
+

+ is-narrow
+ Fifth Column +

+
+
+{% endhighlight %}

Responsiveness