Tutorials
[PHPKit] Navigation oben/unten zentriert
12.03.2008 - 12:39

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:



1
2
3
4
5
6
7
8
9

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:




1
2
3
4
5
6
7
8
9

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:



1
2
3
4
5
6
7
8
9

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:



1
2
3
4
5
6
7
8
9

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.


WEBI


gedruckt am 11.07.2025 - 00:57
http://www.hth-c.com/include.php?path=content/content.php&contentid=766