My question is, if I remove the overflow:hidden
from this code, my entire navigation bar is going to be hidden, so what does the `overflow:hidden; act in this example.
ul{
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: rgb(100, 100, 100);
}
li{
float: left;
}
li a{
padding: 10px 30px;
display: block;
text-decoration: none;
color: white;
font-family: sans-serif;
}
li a:hover{
background-color: rgb(50, 50, 50);
}
<ul>
<li><a href="#" class="active">Home</a></li>
<li><a href="#">Gallery</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">News</a></li>
<li><a href="#">Store</a></li>
<li><a href="#">Form</a></li>
</ul>