HTML CSS examples for Bootstrap Class List:invisible
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.
<!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>