html - Bootstrap 3 - 2 rows beside each other -
i got problem bootstrap 3. want have 2 rows beside each other when comes large screens. used 2 rows because when comes smaller screens need underneath each other. when comes mobile need 1 row. that's not important question.
so picture shows how looks vs how supposed look.
<div class="icons"> <!-- icons --> <div class="row"><!-- row --> <!--begin van 1e rij--> <div class="row"> <!-- row1 --> <div class="col-xs-8 col-xs-offset-3 col-sm-3 col-sm-offset-1 col-md-3 col-md-offset-2 col-lg-2 col-lg-offset-0" style="border: 3px solid black;background-color:grey;"> <img src="img/pakketten_images/pakket_kar.png"> <br> <span class="span3-1">onlineshop</span> </div> <div class="col-xs-8 col-xs-offset-3 col-sm-3 col-sm-offset-1 col-md-3 col-md-offset-0 col-lg-2" style="border: 3px solid black;background-color:grey;"> <img src="img/pakketten_images/pakket_card.png"> <br> <span class="span3">met betaalfuncties</span> </div> <div class="col-xs-8 col-xs-offset-3 col-sm-3 col-sm-offset-1 col-md-3 col-md-offset-0 col-lg-2" style="border: 3px solid black;background-color:grey;"> <img src="img/pakketten_images/pakket_chat.png"> <br> <span class="span3">online klantcontact</span> </div> </div> <!-- /row1 --> <!--begin van 2e rij--> <div class="row"> <!-- row2 --> <div class="col-xs-8 col-xs-offset-3 col-sm-3 col-sm-offset-1 col-md-3 col-md-offset-2 col-lg-2 col-lg-offset-0" style="border: 3px solid black;background-color:grey;"> <img src="img/pakketten_images/pakket_koppel.png"> <br> <span class="span3">webshop koppelen</span> </div> <div class="col-xs-8 col-xs-offset-3 col-sm-3 col-sm-offset-1 col-md-3 col-md-offset-0 col-lg-2" style="border: 3px solid black;background-color:grey;"> <img src="img/pakketten_images/pakket_search.png"> <br> <span class="span3">verhoogt vindbaarheid</span> </div> <div class="col-xs-8 col-xs-offset-3 col-sm-3 col-sm-offset-1 col-md-3 col-md-offset-0 col-lg-2" style="border: 3px solid black;background-color:grey;"> <img src="img/pakketten_images/pakket_marketing.png"> <br> <span class="span3">internet marketing</span> </div> </div> <!-- /row2 --> </div> <!-- row --> </div> <!-- /icons -->
you don't need have multiple rows, can combine them , wrap automatically fill out space. markup close - if i'm understanding you're trying achieve, should able remove inner rows , leave rest of markup unchanged:
<div class="icons"> <!-- icons --> <div class="row"><!-- row --> <!--begin van 1e rij--> <div class="col-xs-8 col-xs-offset-3 col-sm-3 col-sm-offset-1 col-md-3 col-md-offset-2 col-lg-2 col-lg-offset-0" style="border: 3px solid black;background-color:grey;"> <img src="img/pakketten_images/pakket_kar.png"> <br> <span class="span3-1">onlineshop</span> </div> <div class="col-xs-8 col-xs-offset-3 col-sm-3 col-sm-offset-1 col-md-3 col-md-offset-0 col-lg-2" style="border: 3px solid black;background-color:grey;"> <img src="img/pakketten_images/pakket_card.png"> <br> <span class="span3">met betaalfuncties</span> </div> <div class="col-xs-8 col-xs-offset-3 col-sm-3 col-sm-offset-1 col-md-3 col-md-offset-0 col-lg-2" style="border: 3px solid black;background-color:grey;"> <img src="img/pakketten_images/pakket_chat.png"> <br> <span class="span3">online klantcontact</span> </div> <!--begin van 2e rij--> <div class="col-xs-8 col-xs-offset-3 col-sm-3 col-sm-offset-1 col-md-3 col-md-offset-2 col-lg-2 col-lg-offset-0" style="border: 3px solid black;background-color:grey;"> <img src="img/pakketten_images/pakket_koppel.png"> <br> <span class="span3">webshop koppelen</span> </div> <div class="col-xs-8 col-xs-offset-3 col-sm-3 col-sm-offset-1 col-md-3 col-md-offset-0 col-lg-2" style="border: 3px solid black;background-color:grey;"> <img src="img/pakketten_images/pakket_search.png"> <br> <span class="span3">verhoogt vindbaarheid</span> </div> <div class="col-xs-8 col-xs-offset-3 col-sm-3 col-sm-offset-1 col-md-3 col-md-offset-0 col-lg-2" style="border: 3px solid black;background-color:grey;"> <img src="img/pakketten_images/pakket_marketing.png"> <br> <span class="span3">internet marketing</span> </div> </div> <!-- row --> </div> </div>
see codepen: https://codepen.io/kball/pen/vmwmyo?editors=1010
Comments
Post a Comment