centrage dernier message

2 participants

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

Résolu centrage dernier message

Message par nerull Sam 24 Nov 2012 - 15:32

Bonjour

est il possible de centrer (dernier message) ?

si oui je voudrais que

le titre reste ou il est
que la date et le nom soit centré sur la description

et que le nombre de message et sujet soit centré sur les modérateurs

centrage dernier message Sans-t21

merci d'avance nerull


Dernière édition par nerull le Dim 25 Nov 2012 - 12:14, édité 1 fois
nerull

nerull
****

Masculin
Messages : 354
Inscrit(e) le : 11/09/2012

http://mygale.forumactif.fr
nerull a été remercié(e) par l'auteur de ce sujet.

Résolu Re: centrage dernier message

Message par Anzu Dim 25 Nov 2012 - 1:16

Bonsoir,

Pourrais je avoir votre index box et le css associé ? Smile

Cordialement
Anzu

Anzu
Membre actif

Féminin
Messages : 20685
Inscrit(e) le : 30/08/2007

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

Résolu Re: centrage dernier message

Message par nerull Dim 25 Nov 2012 - 1:30

Code:
<table width="98%" border="0" cellspacing="1" cellpadding="0" align="center">
   <tr>
      <td valign="bottom">
         <!-- BEGIN switch_user_logged_in -->
         <br />
         <br />
         </span>
         <!-- END switch_user_logged_in -->
         <div class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_CAT_DESC}</div>
      </td>
      <td class="gensmall" align="right" valign="bottom">
         <!-- BEGIN switch_user_logged_in -->
         <a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />
         <a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a><br />
         <!-- END switch_user_logged_in -->
         <a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>
      </td>
   </tr>
</table>
<!-- BEGIN catrow --><!-- BEGIN tablehead --><table class="forumline" width="100%" border="0" cellspacing="0" cellpadding="2">
   <tr>
      <th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th>
      
      <th nowrap="nowrap" width="150"><div style="width:150px;">{L_LASTPOST}</div></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}">{catrow.cathead.CAT_TITLE}</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"style="background:url(http://www.nerull.be/forum/fond-icone.png)">
         <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="middle" width="70%" height="50">
         <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}>
                        <div class="description"><span class="genmed">{catrow.forumrow.FORUM_DESC}</span></div>
         <span class="gensmall">
                         
            <!-- BEGIN switch_moderators_links -->
            <div class="moderateur">{catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}</div>
            <!-- END switch_moderators_links -->
                         
            {catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
         </span>
      </td>
         
          <td class="row3 over" align="center" valign="middle" height="50">
        <table class="case_stats" cellpadding="0" cellspacing="0">
            <tr>
              <td class="dernier_msg"><p>{catrow.forumrow.LAST_POST}</p></td>
            </tr>
            <tr>
              <td class="stats_forum"><p>{catrow.forumrow.POSTS} messages pour {catrow.forumrow.TOPICS} sujets </p></td>
            </tr>
        </table>
</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="0"><img src="{SPACER}" alt="" height="0" width="0" /></td>
   </tr>
   <!-- END catfoot -->
   <!-- BEGIN tablefoot -->
</table><img src="{SPACER}" alt="" height="5" width="0" /><!-- END tablefoot --><!-- END catrow -->

Code:
table.case_stats {
width:200px;
height:63px !important;
font-size: 10px;
text-align:center;
background-color: #3b3832;
background-image: url('http://www.nerull.be/forum/der-mess.png');
background-repeat: no-repeat;
margin-left: 0px;
margin-bottom: 0px;
}
table.case_stats td.dernier_msg p{
  color: ;
  width:200px;
  height:59px !important;
  padding:3;
  margin:0;
  margin-top:0px;
  margin-center:25px;
  font-size:11px;
  }
table.case_stats td.dernier_msg p a{
  text-decoration:none;
  color:;
  padding:5px;
  }
case_stats {
margin: 5px;
}
stats_forum {
background-color: #3b3832;
}
.moderateur {
background-image: url('http://www.nerull.be/forum/fond-ca2t.png');
background-color: #3f2a0e;
height: 15px;
padding-left: 20px;
}
tHead span {
background-image: url('http://i41.servimg.com/u/f41/17/71/29/43/qeel-t10.png');
}
table#qeel td.row1 {
background:none !important;
}
.forumrow {
width: 57px;
height: 59px !important;
}
.row1 {
  padding: 0px !important;
}
.row3.over {
  padding: 0px;
}[/quote]
nerull

nerull
****

Masculin
Messages : 354
Inscrit(e) le : 11/09/2012

http://mygale.forumactif.fr
nerull a été remercié(e) par l'auteur de ce sujet.

Résolu Re: centrage dernier message

Message par Anzu Dim 25 Nov 2012 - 1:45


Dans votre template,

repérez:
Code:
 <tr>
              <td class="dernier_msg"><p>{catrow.forumrow.LAST_POST}</p></td>
            </tr>
            <tr>

Et remplacez par:

Code:
  <tr>
                      <td class="dernier_msg"><div class="cadrey">{catrow.forumrow.LAST_POST}</div></td>
                    </tr>
                    <tr>

Et dans votre css, rajoutez:

Code:
cadrey {
padding-top: 25px;
}

Le rendu a l'air correct chez moi mais étant donné que je n'ai pas l'intégralité de votre thème, je ne peux pas voir si c'est bon ou pas Razz

Cordialement.
Anzu

Anzu
Membre actif

Féminin
Messages : 20685
Inscrit(e) le : 30/08/2007

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

Résolu Re: centrage dernier message

Message par nerull Dim 25 Nov 2012 - 2:42

cela fonctionne mais ça réduit mon background
nerull

nerull
****

Masculin
Messages : 354
Inscrit(e) le : 11/09/2012

http://mygale.forumactif.fr
nerull a été remercié(e) par l'auteur de ce sujet.

Résolu Re: centrage dernier message

Message par nerull Dim 25 Nov 2012 - 12:13

désolé mais j'ai utilisé une autre solution j'ai ajouté des <br> et j'ai transformé mon image

centrage dernier message Sans-t22

je vous remercie pour votre aide Very Happy
et désolé pour vous avoir fais perdre votre temps

merci

nerull
nerull

nerull
****

Masculin
Messages : 354
Inscrit(e) le : 11/09/2012

http://mygale.forumactif.fr
nerull a été remercié(e) par l'auteur de ce sujet.

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


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