While I was making my navigation bar for my site, I wondered how I'd make every nav in a box so you can click around the instead of having to click on the letters. I've seen this done without making a div for each navbar. This is what i'm talking about:
This is the html I use for the navigation bar:
<div class="Nav">
<h2><center><strong>Blitz</strong></center></h2>
<ul>
<li><a href="index.php">Home |</a></li>
<li><a href="forums.php">Forums |</a></li>
<li><a href="#">Blog |</a></li>
<li><a href="#">About us |</a></li>
<li><a href="#">Info </a></li>
</ul>
</div>
This is the css I was using:
/*CSS script*/
body{
margin:0;
padding:0;
}
.infobox h5{
margin:0 auto;
}
.infobox p{
font-size: 17px;
}
.siteoffering h2{
margin:0 auto;
}
.mainpage{
margin:0 auto;
width:75%;
height:auto;
background:#1CFFED;
}
.Nav{
margin:0 auto;
width:75%;
height:auto;
background:#A7EAFC;
overflow:auto;
border-bottom: 2px solid black;
}
.Nav ul li{
list-style:none;
float:left;
}
.Nav a{
margin-right:20px;
margin-left:20px;
color:black;
text-transform:uppercase;
text-decoration:none;
font-family: Arial sans-serif;
font-weight: bold;
}
.Nav a:hover{
color:blue;
text-decoration:underline;
}
