Artikel »
Tutorials »
[PHPKit] Navigation oben/unten zentriert |
[PHPKit] Navigation oben/unten zentriert
12.03.2008 von WEBI
Ihr wollt das wenn ihr oben/unten eine Kategroy habt das sie in der Mitte ist?
Das will ich euch in diesen Tutorial zeigen wie das geht.
Als erstes sucht ihr euch die datei templates/navigation/navigation_top_box.htm raus.
Dessen Code sollte so aussehen:
| Quellcode <tr>
<td align="left" class="navbgtop">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
$navigation_body
</tr>
</table>
</td>
</tr> | |
Den Code müssen wir nur ein kleines bisschen abändern damit es in der Mitte ist:
| Quellcode <tr>
<td align="<b>center</b>" class="navbgtop">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
$navigation_body
</tr>
</table>
</td>
</tr> | |
So das war es schon.Jetzt ist eure obige Kategory in der Mitte.
Wenn ihr das noch unten haben wollten dann sucht euch navigation_bottom_box.htm die in selber ordner wie die andere ist raus.
Da ist der Code so:
| Quellcode <tr>
<td align="left" class="navbgbottom">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
$navigation_body
</tr>
</table>
</td>
</tr> | |
Da müsst ihr wieder das "left" gegen center austauschen so:
| Quellcode <tr>
<td align="<b>center</b>" class="navbgbottom">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
$navigation_body
</tr>
</table>
</td>
</tr> | |
So und nun sind beide Kategorien immer in der Mitte.
Bei Fragen im Forum melden.
|
|