Centrer le titre des catégories

2 participants

Voir le sujet précédent Voir le sujet suivant Aller en bas

Résolu Centrer le titre des catégories

Message par Ami-mimi Ven 25 Oct 2013 - 1:17

Bonsoir tout le monde o/

Je suis désolé de vous déranger à une heure si tardive, mais voila, en fait depuis un petit moment je cherche comment centrer mon titre de catégorie par rapport à toute la longueur du forum. En effet, j'ai codé le Template afin d'obtenir deux colonnes uniquement (celle de la description des sous forums & celle des derniers messages.) Je pense que pour centrer le titre des catégorie, il faudrait fusionner la ligne 'titre de catégorie' donc ici 'ADMINISTRATION' avec celle des derniers messages.

Mon but étant par la suite de permettre d'avoir le titre de catégorie 'ADMINISTRATION' bien centré sur la longueur du fofo comme ceci :

Centrer le titre des catégories 1382656282-centrercat

Au lieu de ça http://essais-graph.forumactif.fr/forum
Vous pouvez voir que le mot ADMINISTRATION part vers la gauche et c'est logique vu qu'il se centre uniquement par rapport à ma colonne catégorie.

Pour vous aider, voici mon template :

Code:
<!-- BEGIN catrow --><!-- BEGIN tablehead --><table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
   <tr>
      <th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th>
   </tr>
   <!-- END tablehead -->
   <!-- BEGIN cathead -->
   <tr>
      <!-- BEGIN inc -->
      <td class="{catrow.cathead.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
      <!-- END inc -->
      <td class="{catrow.cathead.CLASS_CAT}" colspan="{catrow.cathead.INC_SPAN}" width="100%">
         <h{catrow.cathead.LEVEL} class="hierarchy">
            <span class="cattitle">
                                  <a class="cattitle" title="{catrow.cathead.CAT_DESC}" href="{catrow.cathead.U_VIEWCAT}"><right>{catrow.cathead.CAT_TITLE}</right></a>
            </span>
         </h{catrow.cathead.LEVEL}>
      </td>
      <td class="{catrow.cathead.CLASS_ROWPIC}" colspan="3" align="right"> </td>
   </tr>
   <!-- END cathead -->
   <!-- BEGIN forumrow -->
   <tr>
      <!-- BEGIN inc -->
      <td class="{catrow.forumrow.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" alt="." /></td>
      <!-- END inc -->
      <td class="{catrow.forumrow.INC_CLASS}" align="center" valign="middle">
         <img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" />
      </td>
      <td class="row1 over" colspan="{catrow.forumrow.INC_SPAN}" valign="top" width="100%" height="50">
         <table width="100%"><tbody><tr><td><h{catrow.forumrow.LEVEL} class="hierarchy">
            <span class="forumlink">
               <a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a>
 
            </span>
                          </h{catrow.forumrow.LEVEL}></td><td style="padding-left: 40px; text-align: right;" class="gensmall"><br>Messages: {catrow.forumrow.POSTS} • Sujets: {catrow.forumrow.TOPICS}</td></tr></tbody></table>
                  <span class="genmed"><div class="boxdescription">{catrow.forumrow.FORUM_DESC}</div></div></span>
         <span class="gensmall">
                          {catrow.forumrow.L_LINKS}<div class="boxsousforum">{catrow.forumrow.LINKS}</div>
                          <!-- BEGIN switch_moderators_links -->
            {catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}
            <!-- END switch_moderators_links -->
         </span>
      </td>
      <td class="row3 over" align="center" valign="middle" height="50">
                  <span class="gensmall"><br><br><div class="boxmessage"><br><br>{catrow.forumrow.LAST_POST}</div></span>
                    </td>
   </tr>
   <!-- END forumrow -->
   <!-- BEGIN catfoot -->
   <tr>
      <!-- BEGIN inc -->
      <td class="{catrow.catfoot.inc.INC_CLASS}" width="46"><img src="{SPACER}" height="0" width="46" /></td>
      <!-- END inc -->
      <td class="spaceRow" colspan="{catrow.catfoot.INC_SPAN}" height="1"><img src="{SPACER}" alt="" height="1" width="1" /></td>
   </tr>
   <!-- END catfoot -->
   <!-- BEGIN tablefoot -->
</table><img src="{SPACER}" alt="" height="5" width="1" /><!-- END tablefoot --><!-- END catrow -->
Je vous remercie d'avance ♥ Et si vous n'avez pas bien compris (car mon explication n'est certainement pas très claire) je vous expliquerais un peu mieux en détail ^^
De plus, si vous avez besoin d'autre chose, n'hésitez pas.

Merci beaucoup beaucoup !


Dernière édition par Ami-mimi le Ven 25 Oct 2013 - 22:31, édité 1 fois
Ami-mimi

Ami-mimi
****

Messages : 207
Inscrit(e) le : 14/11/2010

http://tadakai-rpg.forumgratuit.fr
Ami-mimi a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Centrer le titre des catégories

Message par Lixyr Ven 25 Oct 2013 - 11:46

Bonjour. ^^

Votre explication est très claire.

Dans le template, cherchez cette ligne :
     <th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th>
et remplacez par :
Code:
     <th colspan="3" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th>
colspan="3"
Lixyr

Lixyr
Aidactive
Aidactive

Féminin
Messages : 7381
Inscrit(e) le : 22/07/2010

https://forum.forumactif.com
Lixyr a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Centrer le titre des catégories

Message par Ami-mimi Ven 25 Oct 2013 - 22:30

Bonsoir !

Merci beaucoup ça marche à merveille, c'était simple au final >3<

Merci beaucoup ~ Sujet résolu ^^
Ami-mimi

Ami-mimi
****

Messages : 207
Inscrit(e) le : 14/11/2010

http://tadakai-rpg.forumgratuit.fr
Ami-mimi a été remercié(e) par l'auteur de ce sujet.

Voir le sujet précédent Voir le sujet suivant Revenir en haut

- Sujets similaires

Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum