Hello, how are you?
I would like to know how to do within a section, a set of photos side by side with different sizes.
HTML:
<section class="secao-inicio trabalhos">
<h2 class="centered">Imagens</h2>
<ul>
<li><img src="img/foto3.png" alt="Foto 3"></li>
<li><img src="img/foto2.png" alt="Foto 2"></li>
<li><img src="img/foto1.png" alt="Foto 1"></li>
</ul>
</section>
CSS:
.trabalhos h2 {
color: #FFF;
}
.trabalhos ul {
display: -webkit-flex;
display: flex;
}
.trabalhos li {
-webkit-flex: auto;
flex: auto;
border: .5em solid #000;
}
.trabalhos li:first-child {
order: 2;
transform: scale(1.1);
}
.trabalhos li:nth-child(2) {
order: 1;
}
.trabalhos li:nth-child(3) {
order: 3;
}
.trabalhos img {
width: 100%;
display: block;
}
How my code is rendering:
HowIwanteditrendered:
Thank you in advance!