jquery - Is there a way I can have items in divs rearange to fit the space available? -
I have a set of dummy data in the bootstrap column within a line inside the quick container.
Here's what my code looks like (deducting a lot of content which is not required):
& lt; Div id = "container" class = "container-fluid" & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "col-md-3 col-lg-3" & gt; & Lt; Div & gt; Data here! & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "col-md-5 col-lg-5" & gt; & Lt; Div & gt; Data here! & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt;
However, when adding several different columns to different sizes, it becomes very big mess.
This image shows how it looks (and arrows show where the stuff can go to fill the entire page):
Am I using the wrong approach for this? Is there an easy way to fit everything? Is there any jQuery code to fix this? I've tried to googling this many times, but I do not know the keyword for it. If someone solves this problem then I am curious. You are never seeing anything like this ... Most social media sites have fixed the width with multiple columns. I am getting a ton of material from one fourth of a page to five words, so it does not always work best to do this.
I can not make anything on the server side because it will be responsive and things will load different sizes depending on the screen size. Is there any way to do this in the order of objects within rows?
There are more facilities in masonry or packaged packery but are overwhelming.
Comments
Post a Comment