Site-Navigation mit Listen, Beispiel 15

Das Style-Sheet sieht so aus:

body {
   font-size: 15px;
   color: #000;
   background-color: #683;
   padding: 0;
   margin: 0;
   }

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

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

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

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

#navigation A {
   font: bold 1em/25px sans-serif;
   text-decoration: none;
   background: #def url(../../graphics/navback8.gif)
               center no-repeat;
   padding: 5px 0;
   border: none;
   margin: 0;
   width: 150px;
   display: block;
   }

#navigation A:link, #navigation A:visited {
   color: #fff;
   background-color: #794;
   }

#navigation A:hover, #navigation A:focus {
   color: #fff;
   background-color: #c33;
   }

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>