I want to align multiple images / boxes in the follwoing way:
...
<img width="200"
src="http://www.passmark.com/images/monitortestscreenshot5.gif" />
<img width="250"
src="http://www.passmark.com/images/monitortestscreenshot5.gif" />
...
Fiddle: https://jsfiddle.net/1eaxc7kr/2/
My problem with the shown fiddle is, that new elements in the second row should not have a margin to the upper element if they do not need to.
For example the first image of the second row (might depend on screen width) should be a directly below the very first element of the first row.
I tried using flexboxes but I somehow failed on finding a good way.
Here's what i tried:
img {
vertical-align: top;
display: inline-flex;
}
.container {
align-items: flex-start;
}