Bulma: Bulma columns don't wrap?

Created on 31 Jul 2017  路  3Comments  路  Source: jgthms/bulma



Overview of the problem

When using Bulma's cards, they do not wrap by default and overflow horizontally so that any columns that do not fit are hidden. This might be intentional and therefore not a bug but I expected flex items to wrap rather than become hidden?

This is about the Bulma CSS framework

I'm using Bulma version [0.5.0]
My browser is: Chrome 60.0.3112.78 (Official Build) (64-bit)

Steps to Reproduce

Here's a codepen below, but essentially this happens to all <div class="column"> if they add up to more than 12 within a "columns" container.
https://codepen.io/sigil/full/dzGQQJ

Expected behavior

I thought that they should automatically wrap, rather than have the overflow become hidden?
I get around this behaviour by just adding: flex-wrap: wrap to the "columns" div.

A screenshot of my workaround:
with-wrap

Actual behavior

The divs that "overflow" are hidden.
https://codepen.io/sigil/full/dzGQQJ

A screenshot from my project:
no-wrap

Most helpful comment

If you add is-multiline to your .columns element it should wrap automagically.

All 3 comments

If you add is-multiline to your .columns element it should wrap automagically.

Ah that does it. Thanks - I must have missed that in the docs.

No worries. Have fun!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jaredreich picture jaredreich  路  3Comments

NurdinDev picture NurdinDev  路  3Comments

Cosbgn picture Cosbgn  路  3Comments

Qard picture Qard  路  3Comments

fundon picture fundon  路  3Comments