contained in the list any more. What’s more, the paragraph , which we added for
orientation—and made it float as well—was p ut to the right of the m enu instead of
below it.
So we floated the unordered list as we ll to make it grow vertically and embrace all its
floated children. We also made the list 100 percent wide in order to occupy the whole
width of the docu ment, which forced the paragraph following th e menu to move under
it. We also removed the annoying bullets by setting list-style to none:
#top-navigation ul {
float: left;
width: 100%;
list-style: none;
}
Professor: That’s it! How did you fine-tune the design?
Mike: First we took care of the list. We figured out that the items were moved to the
right becau se of the extra left padding that lists use in order to indent their items. So
we set the padding-left property to ze ro. We added some vertical margin s as well:
#top-navigation ul {
float: left;
width: 100%;
list-style: none;
padding-left: 0;
margin: .4em 0;
}
We also floated the header a nd specified its bottom border:
header {
float: left;
width: 100%;
border-bottom: 1px solid black;
}
Next, we designed the links within the navigation menu. I don’t think this needs any
commen ts:
#top-navigation a {
background-color: #DEF;
color: black;
text-decoration: none;
font-variant: small-caps;
padding: 0 10px;
border: 1px solid black;
border-radius: 5px;
102 Meeting 6. Behavior