1
Hello, all right?
I would like to know do inside a section, a set of photos next to each other 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:
How I wanted it to render:
Thank you very much in advance!
Dude try to separate your questions into steps, and try to be clearer in what you need. Edit your question with the code you already have or with an exploit you want to replicate, your question is very wide
– hugocsl
All right, thank you very much!
– Maximiliano Veiga
Need this border shown in the first image?
– Sam