R
R
realnin2015-11-05 22:08:05
css
realnin, 2015-11-05 22:08:05

Blocks of different widths and the same width?

How to make a photo look like here? https://www.flickr.com/explore

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aloe1812, 2015-12-03
@aloe1812

Check out the source code. It can be seen that the width of the blocks is set through the style attribute in the tag. So almost 100% this is done using JS. Do a little googling and you can find js/jquery plugins for this purpose.
For example: miromannino.github.io/Justified-Gallery

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question