-1

So what I'm trying to achieve is that. When the page first loads, I want this to be displayed:

col-md-6 | col-md-3 | col-md-3

But when the window is resized (or when viewed on smaller screen devices), I want to have

col-md-4 | col-md-4 | col-md-4

Is there a way to do this using Bootstrap without CSS hackery?

user2827224
  • 61
  • 2
  • 6

1 Answers1

0

I think you need something like this.

<div class="row">
  <div class="col-md-6 col-sm-4"></div>
  <div class="col-md-3 col-sm-4"></div>
  <div class="col-md-3 col-sm-4"></div>
</div>

What this does is, for medium to large screens, the size would be in the ratio 6/12, 3/12 and 3/12.

and for smaller screens, the divs would take 4/12, 4/12, 4/12 of the available width.

rootkill
  • 599
  • 5
  • 10