Bootstrap Hidden Classes

 

Use of .hidden-xs, .hidden-sm, .hidden-md and .hidden-lg classes is shown for responsive design.

Note:change the size of browser and try to analyse the use of classes.

 
 
 
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Bootstrap Grid Example</title> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> </head> <body> <div> <div class="hidden-sm hidden-xs hidden-md well">visible only on large screens.</div> </div> <div> <div class="hidden-lg hidden-sm hidden-xs well">visible only on medium screens.</div> </div> <div> <div class="hidden-md hidden-lg hidden-xs well">visible only on small screens.</div> </div> <div> <div class="hidden-md hidden-lg hidden-sm well">visible only on extrasmall screens.</div> </div> </body> </html>
Output