Answer the question
In order to leave comments, you need to log in
How to competently implement 1 landing screen in the entire height of the browser?
Hello!
Given:
<div class="box">
<p class="title">ТЕКСТ</p>
<p class="info">ТЕКСТ2</p>
<div class="button">
<a href="">КНОПКА</a>
</div>
</div>
.box {
padding-top: 20vh;
height: 100vh;
}
.button {
margin: 12vh auto 0;
}
Answer the question
In order to leave comments, you need to log in
Make the .box flex, wrap the insides in another container and center it. Somewhere like this:
.box {
display: flex;
width: 100%;
height: 100vh;
}
.box__inner_wrap {
display: block;
width: 100%; // или какая нужна
margin: auto;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question