Having trouble with divs of different sizes? I want a row that shows 3-column wide divs on medium & large screens and 6-column wide divs on small devices.
<div class="container">
<div class="row">
<div class="service col-sm-6 col-md-3">Lots of stuff</div>
<div class="service col-sm-6 col-md-3">Less stuff</div>
<div class="service col-sm-6 col-md-3">Whooa!</div>
<div class="service col-sm-6 col-md-3">More stuff</div>
</div>
On medium & large screens:
–––––––– –––––––– –––––––– –––––––
| Lots | | Less | | Whoa | | More |
| of | |stuff | | !| |stuff|
–––––––– –––––––– –––––––– –––––––
But on small screens:
–––––––– ––––––––
| Lots | | Less |
| of | |stuff |
–––––––– ––––––––
–––––––– ––––––––
| Whoa | | More |
| !| |stuff|
–––––––– ––––––––
An easy fix would be to set a minimum height for the divs, but that's not an option here.
Can anyone help?
Edit: Check out this fiddle