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

4

6

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.

Gameto answered 14/8, 2018 at 18:49 Comment(0)
R
22

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

Rainy answered 13/11, 2018 at 11:50 Comment(0)
E
7

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>
Europeanize answered 12/11, 2018 at 18:3 Comment(0)
M
3

You will have to use custom css for that.

.mobile-hidden {
  display: none;
}

@media (min-width: 769px) {
  .mobile-hidden {
    display: block;
  }
}
<div class="columns">
  <div class="column">Always here</div>
  <div class="column mobile-hidden">Hidden on mobile</div>
  <div class="column">Always here</div>
</div>
Malfunction answered 14/8, 2018 at 19:30 Comment(0)
C
1

add this css in your file

@media only screen and (max-width: 767px) {
.columns .column:nth-child(2) {display: none;}
}
Corrode answered 14/8, 2018 at 19:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.