Site-Navigation mit Listen, Beispiel 08a

Das Style-Sheet sieht so aus:

body {
   padding: 0;
   margin: 0;
   }
#maincontent {
   color: #000;
   background-color: #eee;
   padding: 1em;
   border-left: 1px dotted #ccc;
   margin: 0 0 0 200px;
   }
#navigation {
   background-color: #b6e;
   position: absolute;
   border: 5px dashed #633;
   top: 5px;
   left: 5px;
   }
#navigation LI {
   background-color: #be6;
   padding: 0;
   margin: 0;
   list-style: none;
   width: 150px;
   }
#navigation UL {
   background-color: #6be;
   padding: 0;
   margin: 0;
   }
#navigation A {
   display:block;
   padding: 0;
   border: 2px solid;
   margin: 0;
   }
#navigation A:link, #navigation A:visited {
   color: #fff;
   background-color: #eb6;
   border: 2px solid #e6b;
   text-decoration: none;
   width: 150px;
   display: block;
   }
#navigation A:hover, #navigation A:focus {
   color: #fff;
   background-color: #fd6;
   border: 2px solid #c39;
   text-decoration: none;
   width: 150px;
   display: block;
   }

Das HTML der Seite sieht so aus:

<html>
<head></head>
<body>
<div id="navigation">
<ul>
<li><a title="Grundlagen"
       href="#">Grundlagen</a></li>
<li><a title="Referenz"
       href="#">Referenz</a></li>
<li><a title="Tutorials"
       href="#">Tutorials</a></li>
<li><a title="Browser-Support"
       href="#">Browser-Support</a></li>
</ul>
</div>
<div id="maincontent"></div>
</body>
</html>