I'm utilizing Angular to retrieve a list of items from the server and exhibit them on the page using:
<div class="col-sm-6 col-md-4" ng-repeat="activity in activities">
<img ng-src="[[ act.icon ]]" height="100" alt="">
<h3>[[ act.title ]]</h3>
<a class="btn btn-king small color smooth-scroll" ng-click="joinActivity(activity)">Join</a>
<p>[[ act.description ]]<br>
Duration: [[ activity.num_times ]] time<br>
Points: [[ activity.points ]]<br>
</p>
</div>
As you can see, I intend for each row to display 2 activities on small screens, and 3 activities on medium and larger screens. However, I am encountering an issue where not all rows are displaying the desired number of activities. This problem arises due to some activities having more text content than others, causing their heights to vary. As a result, the next activity is placed in the highest available position on the row below, often disrupting the layout.
It seems like there might be a simple CSS solution to this issue, but I have been unable to find it. The ultimate goal is to achieve the layout shown in the image below. Any assistance in resolving this matter would be greatly appreciated.