Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide a column under a break-point tablet with Bulma?

Tags:

css

bulma

Given the following html :

<div class="columns">
  <div class="column">Always here</div>
  <div class="column">Hidden on mobile</div>
  <div class="column">Always here</div>
</div>

How to make that the middle column get hidden on mobile ?

Note: I found no help on this "hide" feature on the official doc.

like image 317
Hugo LOPEZ Avatar asked Aug 14 '18 18:08

Hugo LOPEZ


People also ask

Is Flex direction column Mobile Bulma?

In Bulma, the flexbox properties are used as helpers. The flex-direction property allows the user to set the direction of items in a flex container with direction utilities, like row, row-reverse, column, column-reverse. Sometimes, the horizontal classes can be omitted as the default direction in the browser is row.

Is Bulma better than bootstrap?

Bulma provides a bit more flexibility for customization compared to Bootstrap. in addition, its modular structure provides more control over individual projects. Unlike Bootstrap, Bulma permits users to import only the modules required for desired features, omitting any that aren't necessary.

Is Bulma mobile first?

Every element in Bulma is mobile-first and optimizes for vertical reading, so by default on mobile: columns are stacked vertically. the level component will show its children stacked vertically.


2 Answers

is-hidden-mobile hides on mobile and is-hidden-touch hides on both mobile and tablet. The hide feature is on the official documentation under responsive helpers:

https://bulma.io/documentation/helpers/visibility-helpers/#hide

like image 112
Mattias Axelsson Avatar answered Oct 18 '22 13:10

Mattias Axelsson


is-hidden-mobile can do the trick

<div class="columns">
  <div class="column">Always here</div>
  <div class="column is-hidden-mobile">Hidden on mobile</div>
  <div class="column">Always here</div>
</div>
like image 40
夜一林风 Avatar answered Oct 18 '22 14:10

夜一林风