I'm doing a site where one of the pages is responsible for listing user posts in the form of boxes. Each box corresponds to a new user publication, which is generated by code in ASP.NET MVC 4 with Entity Framework 6 automatically, picking up the information from the database. Duplicating the divs in the html and formatting the layout of these divs into css sampling and creating links , all perfect.
But when a new post box is inserted, it goes down from the previous one and I wanted it to stay on the side and go down with css .
I used a tag in css which is float: left , but the div does not get responsive when an element is float , because to keep it responsive I did not set the height, I just set a padding-bottom >.
I wanted to know how I can make the boxes go right side down and down as they are generated automatically and keep responsive to the height of the body of the page?
Example: