I want to put the button in the middle of the first box. I have followed a tutorial from w3 schools but it puts the button in the middle of webpage instead of putting it in the middle of the first box.
My code:
.menus{
display: flex;
justify-content: space-evenly;
}
.menu{
background-color: orange;
border: 3px solid grey;
width: 98vh;
height: 98vh;
}
.menu1{
min-height: 50px;
}
.menu2{
min-height: 50px;
}
.menu1 h1{
magin-top: 50px;
text-align: center;
}
<div class="menus">
<!-- program -->
<div class="menu menu1">
<h1></h1>
<button>button</button>
</div>
<!-- items -->
<div class="menu menu2"></div>
</div>