So I have a grid of games that I am getting from a database. I want each row of elements to be aligned vertically, and most of them are. But because the elements are not the same height, some of them are ending up on their own. Does anyone know how to fix this?
For each game in the database I am echoing this code:
<div class="col-xs-4 col-height thumb">
<a class="thumbnail">
<img class="img-responsive" src="'.$imgPath.'" alt="hello" style="width:135px;height:200px">
<span>'.$gameArr[$i][5].'</span>
<br/>
<strong>Genre: </strong><span>'.$gameArr[$i][3].'</span>
<br/>
<strong>Publisher: </strong><span>'.$gameArr[$i][2].'</span>
<br/>
<strong>Platform: </strong><span>'.$gameArr[$i][1].'</span>
<br/>
<strong>PEGI Rating: </strong><span>'.$gameArr[$i][4].'+</span>
<br/>
<strong>Price: </strong><span>£'.$gameArr[$i][6].'</span>
</a>
</div>
P.S Please forgive me if I wasn't very clear, this is my first post. And I realised that what I am trying to explain isn't easy to explain