.hidden - Hide an element (display:none) - HTML CSS Bootstrap Class List

HTML CSS examples for Bootstrap Class List:hidden

Description

.hidden - Hide an element (display:none)

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head><!--from  w w w  .ja va  2  s  . c  o  m-->
<body>

<div class="container">
  <h2>Example</h2>
  <p>The .show class forces an element to be shown (display:block):</p>
  <p class="show">This paragraph is shown (display:block).</p>
  <p>The .hidden class forces an element to be hidden (display:none):</p>
  <p class="hidden">This paragraph is hidden (display:none).</p>
  <p>The .invisible class makes an element invisible (visibility:hidden) - will take up space on page:</p>
  <p class="invisible">This paragraph is hidden (visibility:hidden).</p>
  <p>test</p>
</div>

</body>
</html>

Related Tutorials