Danke Proggi, das hat fast geklappt, nur eine kleine Frage. So sieht mein fertiger Code aus:
style.css
|
PHP-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<style type="text/css">
#navlist
{
margin-left: 20px;
font: 12px Tahoma;
width: 140px;
}
#navlist li
{
list-style: none;
margin: 0;
border: 0px solid;
text-align: left;
}
#navlist li a
{
display: block;
border-left: 4px solid #26489F;
background: #B8C5E5;
text-decoration: none;
}
#navlist li a:link { color: #26489F; }
#navlist li a:visited { color: #000000; }
#navlist li a:hover
{
border-color: #FF7500;
color: #000000;
background: #EFEFEF;
}
</style>
|
navi.html
|
PHP-Quelltext
|
1
2
3
4
5
6
7
8
9
|
<div id="navcontainer">
<ul id="navlist">
</p><li id="active"><a href="seite1.html" id="current"> Item one</a></li>
<li><a href="seite2.html"> Item two</a></li>
<li><a href="seite3.html"> Item three</a></li>
<li><a href="seite4.html"> Item four</a></li>
<li><a href="seite5.html"> Item five</a></li>
</ul>
</div>
|
Das sieht nun sehr hübsch aus, und fast wie bei
www.phpkit.de. Nur halt andere Farben. Doch wie bekomme ich die Links etwas mehr zusammen? Die sind zu tief bis zum anderen. Di sollen links einen blauen balken darstellen, doch die Lücken unter den Links ist nicht so toll. Wie kann man die entfernen?