html - Bootstrap CSS Grid Customize -
i wanted create image grid 1 full image on left , 4 thumbnail images on right of big image. i've done here:
https://codepen.io/ashwindkini/pen/qabrok
<div class="container"> <div class="row"> <div class="col-md-6"> <img src="https://placehold.it/450x450" alt="" /> </div> <div class="row"> <div class="col-md-3"> <img src="https://placehold.it/450x450" alt="" class="img-responsive" /> </div> <div class="col-md-3"> <img src="https://placehold.it/450x450" alt="" class="img-responsive" /> </div> <div class="col-md-3"> <img src="https://placehold.it/450x450" alt="" class="img-responsive" /> </div> <div class="col-md-3"> <img src="https://placehold.it/450x450" alt="" class="img-responsive" /> </div> </div>
how prevent second set of images (thumbnails) increasing size of row?
are able make larger image larger image scales responsively in comparison smaller "thumbnails"?
it remove padding columns width of image (forced column padding) doesn't limit height of image.
everything can go in single row
..
<div class="container"> <div class="row"> <div class="img col-sm-6 col-md-6"> <img src="//placehold.it/600/666" class="center-block img-responsive" alt="big image"> </div> <div class="img col-xs-6 col-sm-6 col-md-3"> <img src="//placehold.it/450/eee" class="img-responsive" > </div> <div class="img col-xs-6 col-sm-6 col-md-3"> <img src="//placehold.it/450" class="img-responsive" > </div> <div class="img col-xs-6 col-sm-6 col-md-3"> <img src="//placehold.it/450" class="img-responsive" > </div> <div class="img col-xs-6 col-sm-6 col-md-3"> <img src="//placehold.it/450/444" class="img-responsive" > </div> </div> </div>
Comments
Post a Comment