I have a varying number of images that are display in a row. I want those images to automatically rescale to fit the screen.
Example: If I have 1 image it should automatically rescale until it hits the max width or height of the screen (which ever comes first). If there are 2 I want them both to fill half the screen.
Is there a way to do it and how does it work? I did not find anything until now. Thank you.
What I currently got:
<!DOCTYPE HTML>
<html>
<head>
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<body>
<script src="http://code.jquery.com/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<div class="row" id="images">
<div class="col-md-3">
<img src=1 class="img-responsive">
<img src=2 class="img-responsive">
<img src=3 class="img-responsive">
<img src=4 class="img-responsive">
</div>
</div>
</body>
</html>