Hidden Bootstrap class

To hide a Bootstrap class, use the .hidden class.


You can try to run the following code to hide a class −

<!DOCTYPE html>
      <title>Bootstrap Example</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
      <div class = "row" style = "padding: 91px 100px 19px 50px;">
         <div class = "show" style = "left-margin:10px; width:300px; background-color:#ccc;">
            This class is visible.
         <div class = "hidden" style = "width:200px; background-color:#ccc;">
            This is an example for hide class. This will be hidden.

Updated on: 21-Nov-2023

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started