+ 1
Nav Bar
What’s the basic code for creating a navigation bar?
3 Antworten
+ 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!