I want to implement some kind of mobile layout with two divs or buttons that fill the entire page from 50% to 50% ( EDIT: under each other). Now when I do this with this code
* {
margin: 0;
padding: 0;
}
html, body {
height: 100%;
}
section {
height: 50%;
}
section>div {
height: 100%;
border: 1px solid black;
margin: 10px;
}
<section>
<div>text1</div>
</section>
<section>
<div>text2</div>
</section>
page is too high. It is hardly surprising that the 10px marker and the 1px border extend the div ... In addition, a div wrapper with 10px filling will not solve the problem.
How could I implement this layout where the page does not scroll (does not overflow), but is 100% high, with two buttons filling the full page (each 50% or 70% - 30% or so), and the button itself has an edge or indents to get a small space on the page border and, for example, 1px a solid border?
^ x3ro