The card should keep 4 item in each row. if I add 5 the new one should go to the next row. How do I do it
Easiest way is to use grid on your ‘Wrapper’ div.
Set display grid, and set 4 columns. That way you will have 4 items per row.