From: kennedybaird Date: Mon, 31 Jul 2017 18:20:19 +0000 (+0700) Subject: include example for .is-centered (#978) X-Git-Tag: 0.5.1~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=915d0b4a15b9549941dbfd3e5f2233c42642ef2b;p=thirdparty%2Fbulma.git include example for .is-centered (#978) and for .is-multiline and .is-centered --- diff --git a/docs/documentation/grid/columns.html b/docs/documentation/grid/columns.html index 8a5083618..460586e30 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