enter image description hereI got stack by a simple thing... I am trying to create a simple navigation for my footer. So, I created a and placed an in it. The list contains three
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.footer {
height: 100vh;
background: grey;
position: relative;
}
.container {
width: 90%;
height: 30vh;
margin: auto;
position: absolute;
top: 20%;
left: 50%;
transform: translateX(-50%);
}
.nav {
background: white;
height: 100%;
}
.list {
height: 100%;
list-style-type: none;
text-align: center;
display: flex;
flex-wrap: wrap;
justify-content: space-around;
align-items: center;
}
.item {
min-width: 30%;
background: grey;
}
<div class="footer">
<div class="container">
<nav class="nav">
<ul class="list">
<li class="item"><a href="">1</a></li>
<li class="item"><a href="">2</a></li>
<li class="item"><a href="">3</a></li>
</ul>
</nav>
</div>
</div>