.visible-* - Deprecated as of v3.2.0. Use .hidden-* instead, show or hide content by device. - HTML CSS Bootstrap

HTML CSS examples for Bootstrap:Grid Layout

Description

.visible-* - Deprecated as of v3.2.0. Use .hidden-* instead, show or hide content by device.

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/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

  <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><!--  w  w w .j av a 2  s  .c  o  m-->
<body>

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

</div>

</body>
</html>                                            

Related Tutorials