I am faced with the challenge of arranging my items in rows based on screen size - 4 across on a large screen, 3 across on a smaller screen, and so forth.
Each group of 4 elements is assigned classes that dictate their layout:
col-xs-12 col-sm-6 col-md-4 col-lg-3
.
The issue arises when the screen is shrunk to display three elements in a row. Currently, it shows three followed by one, resulting in this pattern:
1 1 1
1
1 1 1
1
1 1 1
1
Is there a way to ensure that the next row aligns with the previous one when displaying elements in groups of three?