+ 1
Nav Bar
Whatâs the basic code for creating a navigation bar?
4 RĂ©ponses
+ 10
HTML:
<nav>
<a href="#">Home</a>
<a href="#">News</a>
<a href="#">About</a>
</nav>
Css
nav {
background:black;
overflow:hidden;
}
nav a{
float:left;
text-decoration:none;
color:white;
padding:10px 150x;
font-size:15px;
}
nav a:hover {
background:red;
}
0
Thank you!