Style the outside and work in... <ul> --> then <li> ---> then <a>
The Width of the List
---ul#navigation{ width: 12em; }
The List items
ul#navigation li {
list-style: none; /* gets rid if the "bullets" */
background-color: #039;
border-top: solid 1px #039;
text-align: left;
margin: 0;
}
The Links
---ul#navigation li a, a:link, a:visited, a:active, and a:hover
ul#navigation li a {
display: block; /* makes the list behave like a box and the whole box is clickable*/
text-decoration: none;
padding: .25em;
border-bottom: solid 1px #39f;
border-right: solid 1px #39f;
}
a:link, a:visited { color: #fff; } /*color the links*/
a:hover, a:active { color: #000; }
a:hover { background-color: #fff; }/* make the hover state notable*/