hidden-lg Hides content depending on large screen size - HTML CSS Bootstrap Class List

HTML CSS examples for Bootstrap Class List:hidden-lg

Description

hidden-lg Hides content depending on large screen size

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   ww w .  j  a  v a  2 s. co m-->
<body>

<div class="container">
  <h2>Example</h2>
  <p>Resize this page to see how the text below changes:</p>
  <h1 class="hidden-xs bg-danger">This text is hidden on an EXTRA SMALL screen.</h1>
  <h1 class="hidden-sm bg-info">This text is hidden on a SMALL screen.</h1>
  <h1 class="hidden-md bg-warning">This is text hidden on a MEDIUM screen.</h1>
  <h1 class="hidden-lg bg-success">This is text hidden on a LARGE screen.</h1>
</div>

</body>
</html>

Related Tutorials