Open In App

Bulma Visibility

Bulma is an open-source CSS framework developed by Jeremy Thomas. This framework is based on the CSS Flexbox property. It is highly responsive, minimizing the use of media queries for responsive behavior.

Visibility is one of the helper classes in Bulma that can show or hide the content depending on the viewport. There are so many classes that we can use to show or hide any content.



Showing the content: The following classes are used to show the content.

is-flex helper classes:



Example: The following code demonstrates the is-flex-mobile class. Developers can use other classes as per the need.




<!DOCTYPE html>
<html>
  
<head>
    <title>Bulma Visibility</title>
    <link rel='stylesheet' href=
</head>
  
<body class="has-text-centered">
    <h1 class="is-size-2 has-text-success">
        GeeksforGeeks
    </h1>
    <strong>Bulma Visibility</strong>
    <br> <br>
      
    <div class="is-flex-mobile">
        <p class="is-block">GeeksforGeeks text1 </p>
           
        <p class="is-block"> GeeksforGeeks text2</p>
    </div>
</body>
  
</html>

Output:

Hide content classes: We can use the following classes to hide the content according to the viewport.

Example: The following code demonstrates the is-hidden-mobile class. Developers can use other classes as per the need.




<!DOCTYPE html>
<html>
  
<head>
    <title>Bulma Visibility</title>
    <link rel='stylesheet' href=
</head>
  
<body class="has-text-centered">
    <h1 class="is-size-2 has-text-success">
        GeeksforGeeks
    </h1>
    <strong>Bulma Visibility</strong>
    <br> <br>
      
    <div class="is-hidden-mobile">
        <p class="is-block">GeeksforGeeks1</p>
           
        <p class="is-block">GeeksforGeeks2</p>
    </div>
</body>
  
</html>

Output:


Article Tags :