[reglé] 'tit problème de centrage

Started by goffin, October 04, 2004, 11:03:44 AM

Previous topic - Next topic

goffin

tant que j'y suis avec mes 'tits pb de novice
je cherche à centrer le code qui reprend la variable "ma communeauté" celle qui vient tout en haut du forum dans la page index.template.php
trois fois que j'essaie trois fois que je me retrouve en parse error ...
j'essaie de placer des balises <CENTER>et </center> ....autour de la variable de différentes façons
j'ai essayé aussi de mettre ces balises entourant la variable dans la gestion du serveur ça fonctionne
mais ma page internet se nomme <center>ma communeauté</center> lorsque je la réduis ...
cépabo...
où me gourge ? comme enfer ? ( :P fin de journée faut que j'arrête ... :P)
merci
HEU....COIN COIN ?

Alexandre P.

Je m'essaye (je n'ai vraiment pas le temps de tester, désolé :( )

Dans index.template.php du thème à modifier (par exemple, ici, c'est le thème par défaut, aux lignes 139 à 152):
// The logo and the three info boxes
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="position: relative;">
<tr>
<td colspan="2" valign="bottom" style="padding: 5px; white-space: nowrap;">';

// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';

echo '
</td>
</tr>
à remplacer par // The logo and the three info boxes
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="position: relative;">
<tr>
<td colspan="2" valign="bottom" style="padding: 5px; white-space: nowrap; text-align: center;">';

// This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';

echo '
</td>
</tr>
Aucun support par M.P., courriel ou messagerie instantanée / No support by P.M., email or I.M.

goffin

HEU....COIN COIN ?

Advertisement: