1
I have a div
parent who is responsible for bringing together certain quantities of children.
The problem is that this div is always aligned to the left, without leaving blank spaces, but each parent div has a different number of child elements.
This causes each parent div to have a different height, and consequently the float: left
In some cases it causes an element to be aligned to the right, leaving a huge blank to the left. When there’s no white space on top.
I will illustrate the problem I have with two images:
Like the Pinterest site ?
– Diego Souza
Exact lover, @Diegosouza
– Wallace Maxters
Once I needed it I used a jQuery plugin. If you are interested here: http://www.jqueryscript.net/demo/Masonry-style-Fluid-Image-Grid-Plugin-For-jQuery-fluid/. You may already have searched.
– Diego Souza