S
S
Stealing2017-09-18 18:03:59
Images
Stealing, 2017-09-18 18:03:59

img one after the other without a void?

Good afternoon.
fc9ab4c913884e599ffff96ad413da99.jpg
There are 7 images, one after the other. <img src="../001.jpg"> и т.д.
How to make the images fill the empty space (squeeze against each other), in my case, the 6th image is pressed against the 2nd.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Bogachev, 2017-09-18
@sfi0zy

Option 1 (bad): use transform:translateY to raise the bottom image. This approach will preserve the markup, but this is a crutch.
Option 2 (good): still make some kind of grid, instead of images following one after another. This will simplify adaptation to small screens and allow you to keep order in case some pictures do not load. As an example, from which you can build on, you can look at this demo .

S
Stealing, 2017-09-18
@Stealing

I also found an option on Habrahabr using JavaScript.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question