"responsive images"
Bootstrap 3.3.0 Snippet by hdavey22

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
<img class="visible-lg" src="http://i.imgur.com/WAiELBT.jpg" alt="" title="File size= 750KB">
<img class="visible-md" src="http://i.imgur.com/QwrMo86.jpg" alt="" title="File size= 355KB">
<img class="visible-sm" src="http://i.imgur.com/uO4cCar.jpg" alt="" title="File size= 239KB">
<img class="visible-xs" src="http://i.imgur.com/QOO1PeD.jpg" alt="" title="File size= 55KB">
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

Check this method out simply the same without even using bootstrap.
https://www.w3schools.com/t...
<picture>
<source media="(min-width: 650px)" srcset="img_pink_flowers.jpg">
<source media="(min-width: 465px)" srcset="img_white_flower.jpg">
<img src="img_orange_flowers.jpg" alt="Flowers" style="width:auto;">
</picture>

Pops () - 7 years ago - Reply 0