"TEST v4.0 Responsive utilties"
Bootstrap 4.0.0 Snippet by mrmccormack

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<h2>Test v4.0 Responsive utilities</h2>
<a href="https://getbootstrap.com/docs/4.0/utilities/display/">Reference</a>
<hr>
<p>
<a href="http://bootsnipp.com/iframe/4MGox" target="_blank">View Full Screen</a>
</p>
</div>
</div>
<hr><br>
<div class="container">
<div class="row">
<div class="col-sm">
<h4>ResponsiveTest</h4>
<div class="d-none d-md-block d-xl-none">
<b> will hide the element for all screen sizes except on medium
</b>
</div>
<div class="d-lg-none">hide on screens wider than lg</div>
<h4>test</h4>
<div class="d-none d-lg-block">d-none d-lg-block</div>
<div class="d-none d-sm-block">d-none d-sm-block</div>
<img src="https://cdn.movieweb.com/img.news.tops/NEeGWdZMzXozil_1_b/Last-Jedi-Darth-Revan-Official-Star-Wars-Canon.jpg" class="img-fluid .d-md-none .d-lg-block">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: