Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
The simplest: two pictures are stitched into one, which is centered on the background ))
You can pervert with two blocks :before + :after %)
<div class="container">
<img class="img" src="" alt="">
<div class="text-container">
<!-- текст -->
</div>
</div>
.container {
display: flex;
justify-content: center;
width: 100%;
height: 100vh;
}
.img {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.text-container {
display: flex;
flex-direction: column;
width: 100%;
max-width: 1320px;
}
<div class="container">
<img class="img" src="" alt="">
<img class="img" src="" alt="">
<div class="text-container">
<!-- текст -->
</div>
</div>
.container {
display: flex;
justify-content: center;
width: 100%;
height: 100vh;
}
.img {
position: absolute;
top: 0;
bottom: 0;
разделисть по сторонам картинки
width: 50%;
height: 100%;
object-fit: cover;
}
.text-container {
display: flex;
flex-direction: column;
width: 100%;
max-width: 1320px;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question