<ul>
and <li>
elements makes perfect sense:
To remove the bullets and the margins and padding from the above list, use the CSS on the right: |
|
Vertical Navigation Bar
To build a vertical navigation bar, style the <a> elements in addition to the code above:
|
|
display:block
—Displaying the links as block elements makes the whole link area clickable (not just the text), and it allows us to specify the width.
width:100px
—Block elements take up the full width available by default.