Then, I'm starting to study html and css, I'm trying to make a page with a side menu with the homescreen next to it, but the homescreen box does not go up to the menu bar side, I do not know if the code is wrong, if anyone can help ... thank you, follow the html and css below:
* {
margin: 0;
padding: ;
font-family: roboto;
}
.menu {
background-color: #052e40;
width: 200px;
height: 100vh;
text-align: right;
vertical-align: middle;
display: table-cell;
line-height: 50px;
padding-right: 50px;
}
a {
text-decoration: none;
color: #15b6ff;
}
li {
list-style-type: none;
}
@font-face {
font-family: 'roboto';
src: url('roboto.ttf');
font-weight: normal;
font-style: normal;
}
.menu nav ul li a:hover {
color: white;
}
hr {
color: #15b6ff;
}
.home {
background-color: red;
width: 300px;
height: 100vh;
float: left;
}
<!DOCTYPE HTML>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<meta name="author" content="Nil">
<meta name="description" content="Site Simples">
<link rel="stylesheet" href="este.css">
</head>
<body id="corpo">
<!--Barra lateral/Menu-->
<section id="Barralat">
<div class="menu">
<nav>
<ul>
<li><a href="#">Pagina Inicial</a></li>
<hr>
<li><a href="#">Quem Somos Nós</a></li>
<hr>
<li><a href="#">Cursos</a></li>
<hr>
<li><a href="#">Pré-Matricula</a></li>
<hr>
<li><a href="#">Fale Conosco</a></li>
<hr>
</ul>
</nav>
</div>
</section>
</section>
<!--Final da barra lateral/menu-->
<!--pagina inicial-->
<section class="home">
Pagina Inicial
</section>
</body>
</html>