Create two versions of a navigation menu ("navbar") —one vertcal, and one horizontal.
The first navbar will be vertical and look like this:
<div id="navigation">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">What's New</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">FAQ</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<style type="text/css">
<!--
-->
</style>
#navigation{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 0.8em;
font-weight: bold;
width: 8em;
border-right: 1px solid #333;
}
#navigation ul {
list-style: none;
margin: 0;
padding: 0;
}
#navigation ul li {
margin: 0;
}
#navigation ul li a {
display: block;
padding: .2em .2em .2em .4em;
border-top: 1px solid #003;
border-left: 1px solid #369;
border-right: 1px solid #69C;
border-bottom: 1px solid #369;
background-color: #036;
color: #fff;
text-decoration: none;
width: 100%;
}
html>body #navigation ul li a {
width: auto;
}
#navigation ul li a:hover {
background-color: #69F;
}
The second navbar will look like this:
<div id="navigation2">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">What's New</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">FAQ</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
#navigation2 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 0.8em;
font-weight: bold;
padding: 0;
}
#navigation2 ul {
list-style: none;
margin: 0;
padding: 0;
width: 100%;
background-color: #036;
float:left; /* This is needed to keep the list element from collapsing */
}
#navigation2 ul li {
float:left;
margin: 0;
}
#navigation2 ul li a {
display: block;
margin: 0;
padding: 0 2em;
line-height: 1.8em;
color: #fff;
text-decoration: none;
}
#navigation2 ul li a:hover {
background-color: #69F;
}
Upon completion, give me a copy of your html file.
Week 7: Due, beginning of class.
4 pts |
Went well above and beyond and created something special. |
3 pts |
Customized both navbars. |
2 pts |
Customized one of the navbars or did very little on both. |
1 pts |
Completed both navbars, but did no customization. |
0 pts |
Incomplete. |