html - Bootstrap - Row of icons to flow to second line (make responsive) -
i'm using bootstrap 4, , trying create (responsive) row of 12 icons.
<div class="app-container"> <div class="row"> <div class="col-md-1"> <a class="" href="https://www.xxx.org.au"> <img class="" src="/images/web-1.png" alt=""> </a> </div> ... x 12 </div> </div>
and class "app-container" has 1 style property:
.app-container { width:1050px; }
on wide display icons stay in single row.
but window decreases in width, i'd icons start falling second row (starting icons on right end) 1 @ time.
at present stay how things behind reduce in width. (they overflow outside container in. not being fluid/responsive).
see below:
easiest solution use classes built bootstrap 4.
http://www.codeply.com/go/mvnos3gpcc
<div class="app-container"> <div class="row"> <div class="col-1"> <a class="" href="https://www.xxx.org.au"> <img class="" src="//placehold.it/60" alt=""> </a> </div> <div class="col-1"> <a class="" href="https://www.xxx.org.au"> <img class="" src="//placehold.it/60" alt=""> </a> </div> <div class="col-1"> <a class="" href="https://www.xxx.org.au"> <img class="" src="//placehold.it/60" alt=""> </a> </div> <div class="col-1"> <a class="" href="https://www.xxx.org.au"> <img class="" src="//placehold.it/60" alt=""> </a> </div> <div class="col-1"> <a class="" href="https://www.xxx.org.au"> <img class="" src="//placehold.it/60" alt=""> </a> </div> <div class="col-1"> <a class="" href="https://www.xxx.org.au"> <img class="" src="//placehold.it/60" alt=""> </a> </div> <div class="col-1"> <a class="" href="https://www.xxx.org.au"> <img class="" src="//placehold.it/60" alt=""> </a> </div> <div class="col-1"> <a class="" href="https://www.xxx.org.au"> <img class="" src="//placehold.it/60" alt=""> </a> </div> <div class="col-1"> <a class="" href="https://www.xxx.org.au"> <img class="" src="//placehold.it/60" alt=""> </a> </div> <div class="col-1"> <a class="" href="https://www.xxx.org.au"> <img class="" src="//placehold.it/60" alt=""> </a> </div> <div class="col-1"> <a class="" href="https://www.xxx.org.au"> <img class="" src="//placehold.it/60" alt=""> </a> </div> <div class="col-1"> <a class="" href="https://www.xxx.org.au"> <img class="" src="//placehold.it/60" alt=""> </a> </div> </div> </div>
just set min-width
on each col-1
. don't use col-md-1
beause they'll stack @ 992px
instead of "one @ time".
Comments
Post a Comment