Site-Navigation mit Listen, Beispiel 10

Das Style-Sheet sieht so aus:

body {
   color: #000;
   background-color: #bdc;
   padding: 0;
   margin: 0;
   }

#maincontent {
   background-color: #deeee6;
   padding: 1em;
   border-left: 1px solid #966;
   margin: 0 0 0 174px;
   }

#navigation {
   background-color: transparent;
   position: absolute;
   border: 1px solid #966;
   top: 7px;
   left: 7px;
   }

#navigation LI {
   background-color: transparent;
   padding: 0;
   margin: 0;
   list-style: none;
   width: 158px;
   }

#navigation UL {
   background-color: transparent;
   padding: 0;
   margin: 0;
   }

#navigation A {
   display:block;
   text-decoration: none;
   padding: 3px;
   border: 1px solid #aaa;
   margin: 0;
   width: 150px;
   }

#navigation A:link, #navigation A:visited {
   color: #622;
   background-color: #deeee6;
   }

#navigation A:hover, #navigation A:focus {
   color: #622;
   background-color: #eef6f2;
   }

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>