Site-Navigation mit Listen, Beispiel 25a

Das Style-Sheet sieht so aus:

body {
   font-size: 15px;
   color: #000;
   background: #ded8dc
               url(../../graphics/navback9.gif)
               left center
               no-repeat;
   padding: 0;
   margin: 0;
   }

#maincontent {
   background-color: #fafbfb;
   padding: 1em;
   border-left: 2px solid #066a69;
   margin: 0 0 0 174px;
   }

#navigation {
   background-color: transparent;
   position: fixed;
   top: 30%;
   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 sans-serif;
   text-decoration: none;
   display:block;
   padding: 3px 4px;
   border: 2px solid #668cb2;
   margin: 1px 0 0;
   width: 148px;
   border-radius:4px;
   -moz-border-radius:4px;
   }

#navigation A:link, #navigation A:visited {
   color: #000;
   background-color: #ded8dc;
   padding: 3px 4px;
   border: 2px solid #ded8dc;
   border-color: #fff #000 #000 #fff;
   opacity:0.7;
   -moz-opacity:0.7;
   }

#navigation A:hover, #navigation A:focus {
   color: #000;
   background-color: #ded8dc;
   padding: 4px 3px 2px 5px;
   border: 2px inset #ded8dc;
   border-color: #000 #fff #fff #000;
   opacity:0.95;
   -moz-opacity:0.95;
   }

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="Browsers"
       href="#">Browsers</a></li>
</ul>
</div>

<div id="maincontent"></div>
</body>
</html>