Ok hab selber rausgekriegt 
so sieht die Ausgabe jetzt aus:
Css dazu
Danke für deine grossartige Hilfe Mermshaus!! 

so sieht die Ausgabe jetzt aus:
PHP-Code:
//Eintrag für Eintrag wird das Array $entries durchlaufen und ausgegeben
foreach ($entries as $entry) {
if ($entry['path'] != './Inhalt'){
echo '<ul class="t1">';
if ($entry['depth'] == 1) {
echo '<li><a href="./Startseite.php?l=' . $entry['path'] . '">' . $entry['title'] . '</a></li>';
}
echo '<ul class="t2">';
if ($entry['depth'] == 2) {
echo '<li><a href="./Startseite.php?l=' . $entry['path'] . '">' . $entry['title'] . '</a></li>';
}
echo '<ul class="t3">';
if ($entry['depth'] == 3) {
echo '<li><a href="./Startseite.php?l=' . $entry['path'] . '">' . $entry['title'] . '</a></li>';
}
echo '</ul>';
echo '</ul>';
echo '</ul>';
}
}
Code:
#navigation
{
position:fixed;
left:0;
top:0;
height:100%;
width:230px;
background:#aaa;
color:#fff;
z-index:4;
}
li {
list-style:none;
}
.t1
{
padding-left:2px;
}
.t2
{
padding-left:12px;
}
.t3
{
padding-left:22px;
}


Kommentar