• IMPORTANT: Welcome to the re-opening of GameRebels! We are excited to be back and hope everyone has had a great time away. Everyone is welcome!

HTML Navigation Bar

DistanceDesigns

Active Member
Joined
Sep 8, 2013
Messages
137
Reaction score
0
Simple Navigation bar that took me 3-4 mins to make

Here it is
Code:
<!-- CodingTuts Inc, © All Rights Reserved -->
<!-- Coded by Distance / Chris / HTMLCoding(Pastebin) -->
<!DOCTYPE html>
<html>
<head>
      <title>Home</title>
</head>
<nav id="nav">
   <ul>
      <li><a href="index.html">Home</a></li>
	  <li><a href="about.html">About</a></li>
	  <li><a href="prices.html">Prices</a></li>
	  <li><a href="affiliates.html">Affiliates</a></li>
	  <li><a href="forums/">Forums</a></li>
   </ul>
</nav>
<style>
#nav {
font-family: helvetica,sans-serif;
float: left;
padding: 0;
background-color: black;
width: 100%;
letter-spacing: 5px;
word-spacing: 70px;
text-align: center;
}
#nav ul {
padding: 0;
width: 100%;
margin: 2px;
}
#nav li {
display: inline;
}
#nav a {
text-decoration: none;
color: #0696FC;
}
#nav a:visited {

}
#nav a:hover {
background-color: white;
}
#nav a:link, a:active {
width: 120px;
font-weight: bold;
padding: 4px;
}
</style>
 

Toxique

Well-Known Member
MOTM
Joined
Jan 27, 2012
Messages
3,910
Reaction score
11
Good tutorial! Thanks for sharing, +5rep :)
 
Top