Hi there!
Can you please help me to understand how to style such a markup?
I have something like this but it’s so ugly, cannot find out the mistake
<div class="main__imgs">
<div class="main__img--left">
<img src="../assets/images/image2.png">
</div>
<div class="main__img--center">
<img src="../assets/images/image1.png">
</div>
<div class="main__img--right">
<img src="../assets/images/image3.png">
</div>
</div>
and SCSS according to figma (ugly, too)
.main {
&__imgs {
border: 1px solid red;
}
&__img {
&--left {
img {
width: 238px;
height: 331px;
left: 229.19px;
top: 201.76px;
transform: rotate(1.1deg);
}
}
&--center {
width: 476px;
height: 702px;
img {
object-fit: cover;
left: 491.27px;
top: 73.89px;
transform: rotate(1.5deg);
}
}
&--right {
img {
width: 345px;
height: 238px;
left: 890.32px;
top: 494.97px;
transform: rotate(2.03deg);
}
}
}
}
I would be grateful for any advice! Thank you!