PDA

Voir la version complète : vBulletin 3.6.x Centrage du logo


Ramses
29/02/2004, 10h12
J'ai bien lu les posts qui en parlent sur VB3, mais je n'arrive pas à centrer mon logo. Il reste tjrs à gauche ???

Gizmo
29/02/2004, 12h53
Alors dans le header:

Remplace les
<td align="$stylevar[left]"
et
<td align="$stylevar[right]"
par
<align="center">

ensuite juste avant ce code:
<if condition="$bbuserinfo[userid]">
ajoute la balise:
<center>
et, juste après ca:
border="0" vspace="8" /></a>
&nbsp; &nbsp;

rajoute:
</center>

Je crois bien que c'est tout :)

Ramses
29/02/2004, 13h20
Apparement ca marche pas

Je me permets de te mettre mon header :


<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[center]"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[center]">
&nbsp;
<!--
NEW HEADER &amp; NAVBAR

Now that the nav buttons are in the
navbar template, you can stick whatever
you like into this space.

This makes it much easier for novice
admins to customize their header
template without affecting important
navigation elements.
-->
</td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

Akex
29/02/2004, 13h50
Essaye ça

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[center]"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

Ramses
29/02/2004, 14h39
Ca ne marche tjrs pas

Akex
29/02/2004, 15h45
t'as bien mis center à la place de $stylevar[center] ?

Ramses
29/02/2004, 15h48
Ca y est, comme c'est dimacnhe j'ai eu du mal a comprendre

Encore merci

Eve_Ra
29/02/2004, 15h51
Oui, curieusement, si $stylevar[left] et $stylevar[right] fonctionnent bien, $stylevar[center] n'est pas pris en compte.