Answer the question
In order to leave comments, you need to log in
How to implement a grid of images with different sizes in CSS?
Bottom line: there are a bunch of pictures of different sizes. It is necessary, using CSS3, to arrange them as shown in the picture:
Now it looks like this:
Code:
<article id="preview">
<a href="link"><img src="img" class="img" alt="starry-night-over-the-rhone" height="1333" width="2000">Starry Night Over the Rhone</a>
</article>
#preview {
float: left;
width: 30%;
margin: 0px 1% 1%;
}
Answer the question
In order to leave comments, you need to log in
The simplest solution is to split it into N columns, since your images have the same width.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question