0

I have multiple Div Boxes like this below:

<div class="col-sm-4 col-md-4 col-xs-12  text-center">
  <div class="carCard">
    <h2 class="text-center">Box 1</h2>
    <p>
      Conent Here
    </p>
  </div>
</div>

However, if the content <p> get big, the boxes in order get missed up, see example: https://jsfiddle.net/3oq8h3vy/2/

You can see Box 1, Box 2, Box 3 and then send row: Box 5, Box 6 and Box 4.

How to fix this?

I'll-Be-Back
  • 10,530
  • 37
  • 110
  • 213

2 Answers2

1

there is two solution one is you can use same height for carCard class.

and second one is you can wrap up there in a row and another three in other row etc.

Or you can use same height for p tag with in carCard.

Obaidul Kader
  • 217
  • 1
  • 7
1

Replace CSS

.carCard {
  border: 3px solid #ebebeb;
  padding-bottom: 20px;
  margin-bottom: 40px;
  height:150px;
  overflow:auto;
  overflow-x:hidden;
}
chirag solanki
  • 399
  • 2
  • 8