<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="./index.css">
<style>
* {
margin: 0;
padding: 0;
}
.header {
width: 100%;
height: 80px;
background-color: black;
}
.menu {
color: white;
font-size: 25px;
display: flex;
flex-direction: row;
justify-content: center;
line-height: 80px;
}
.menu-item {
margin: 0 20px;
list-style-type: none;
padding: 0 10px;
transition:background-color 1s;
transition:color 1s;
transition:transform 2s;
cursor: pointer;
}
.menu-item:hover{
color: black;
background-color: white;
transform: rotate(360deg);
}
.container {
height: 700px;
padding: 20px;
display: flex;
flex-direction: row;
}
.left {
width: 20%;
background-color: gray;
}
.right {
width: 80%;
background-color: bisque;
}
.footer {
width: 100%;
height: 80px;
background-color: black;
align-items: flex-end;
}
body {
display: flex;
flex-direction: column;
justify-content: space-between;
background-color: cadetblue;
height: 100%;
}
</style>
</head>
<body>
<div class="header">
<ul class="menu">
<li class="menu-item">Home</li>
<li class="menu-item">About</li>
<li class="menu-item">User</li>
<li class="menu-item">Info</li>
</ul>
</div>
<div class="container">
<div class="left"></div>
<div class="right"></div>
</div>
<div class="footer"></div>
</body>
</html>