<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Example of Bootstrap 3 Visible Responsive Classes</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css">
<!-- Optional Bootstrap theme -->
<link rel="stylesheet" href="bootstrap/css/bootstrap-theme.css">
<style type="text/css">
p {
padding: 20px;
background: #FFF0F5;
border-radius: 5px;
}
.bs-example {
margin: 20px;
}
</style>
</head>
<body>
<div class="bs-example">
<p class="visible-xs">This paragraph is visible only on <strong>Extra Small Devices</strong> that has screen width less than <code>768px</code>.</p>
<p class="visible-sm">This paragraph is visible only on <strong>Small Devices</strong> that has screen width greater than equal to <code>768px</code> but less than <code>992px</code>.</p>
<p class="visible-md">This paragraph is visible only on <strong>Medium Devices</strong> that has screen width greater than or equal to <code>992px</code> but less than <code>1200px</code>.</p>
<p class="visible-lg">This paragraph is visible only on <strong>Large Devices</strong> that has screen width greater than or equal to <code>1200px</code>.</p>
</div>
<script src="bootstrap/js/jquery.js"></script>
<script src="bootstrap/js/bootstrap.js"></script>
</body>
</html>
Comments
Post a Comment