- This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
Viewing 9 posts - 1 through 9 (of 9 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
here my code http://codepen.io/anon/pen/wGwzmQ
my problem, how can i place fourth box just below first box. am i need javascript or no .
You can’t do that with CSS.
You need Javascript – http://masonry.desandro.com/
can you give me the concept how the javascript work, so i can make it with my own code not with plug-in.
Unfortunately, not….you’ll have to look into that for yourself.
ok, thanks a lot
You can fake the masonry look by restructuring your html and grouping the article divs into columns:
http://codepen.io/kvana/pen/WweVqB
It’s pretty inflexible though…
You can fake the masonry look by restructuring your html and grouping the article divs into columns:
Yes..the look but not the actual order…which is the point.
Maybe the order is irrelevant for the OP… they didn’t specify? Anyway, I just offered one possible solution which may or may not be good for this use case, but options are always good, right?
I think it was a good idea, but it would be an obstacle if i use to display data from a database, when each box has a different height, maybe there is a column that has a length that is very different from the others,