.invisible - Makes an element invisible (visibility:hidden). but take up space on the page - HTML CSS Bootstrap Class List

HTML CSS examples for Bootstrap Class List:invisible

Introduction

The .show class forces an element to be shown (display:block)

The .hidden class forces an element to be hidden (display:none)

The .invisible class makes an element invisible (visibility:hidden) but take up space on page.

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><!-- ww  w . jav a2 s  .  c o m-->
<body>

<div class="container">
  <h2>Example</h2>
  <p class="show">This paragraph is forced to be shown (display:block).</p>
  <p class="hidden">This paragraph is forced to be hidden (display:none).</p>
  <p class="invisible">This paragraph is forced to be hidden (visibility:hidden).</p>
  <p>test</p>
</div>

</body>
</html>

Related Tutorials