AccueilDernières imagesRechercherS'enregistrerConnexion

Forum de graphisme, codage et game design proposant des tutoriels, astuces, libres services et commandes dans les domaines de l'infographie amateur, de l'intégration web (HTML et CSS essentiellement) ainsi que dans la conception de RPG sur forum.

-45%
Le deal à ne pas rater :
WHIRLPOOL OWFC3C26X – Lave-vaisselle pose libre 14 couverts – ...
339 € 622 €
Voir le deal

    Problème: colonne "derniers messages"

    Mitsuomi Takayanagi
    Mitsuomi Takayanagi
    Age : 31Messages : 76

    Jeu 8 Sep 2011 - 15:10

    Bonjour à tous. D'un manière générale c'est vrai que j'aime bien résoudre mes problèmes moi même, mais là je m'en remet entièrement à vous. J'espère que vous pourrez m'aider sans trop gaspiller votre temps. Merci à vous d'avance.

    Voici donc mon soucis:

    J'ai modifier mon template index_box(donné ci-dessous), de sorte à mettre le nombre de message et de sujet dans la dernière colonne du tableau(intitulé "derniers messages"). J'ai allié html et css et tout marche pour le mieux, j'ai réussi à obtenir ce que je voulais. Le seul bémol c'est que la taille de ma colonne varie. Efectivement lorsqu'un message a été posté dans la catégorie, ma colonne fait à peu près 200 px de large, mais lorsqu'il n'y a aucun message, la colonne est bien plus grande.

    Je vous laisse une photo pour expliquer bien mieux que moi^^':
    Problème: colonne "derniers messages" 0116

    Et voici mon template:
    Code:
    <table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
      <tr>
          <td valign="bottom">
            <!-- BEGIN switch_user_logged_in -->
            <span class="gensmall">{LAST_VISIT_DATE}

            {CURRENT_TIME}

            </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>

            <a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a>

            <!-- END switch_user_logged_in -->
            <a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>
          </td>
      </tr>
    </table>
    <!-- BEGIN catrow --><!-- BEGIN tablehead -->
    <!---------------- Début ajout  --------------------->
    <div id="table_head"></div>
    <!---------------- Fin ajout  --------------------->
    <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>
     
     
          <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">
            <div class="icones"><img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></div>
          </td>
          <td class="row1 over" colspan="{catrow.forumrow.INC_SPAN}" valign="top" width="100%" 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}>
            <span class="genmed">{catrow.forumrow.FORUM_DESC}</span>
            <span class="gensmall">
                <!-- BEGIN switch_moderators_links -->
                {catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}
                <!-- END switch_moderators_links -->
                {catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
            </span>
          </td>
     
          <td class="row3 over" align="center" valign="middle" height="50">
            <div class="statcontour"><span class="gensmall">{catrow.forumrow.LAST_POST}</span>

     ..............................

     <span class="gensmall"><b>Sujets :</b> {catrow.forumrow.TOPICS} | <b>Messages :</b> {catrow.forumrow.POSTS}</span></div>
          </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" />
    <!---------------- Début ajout  --------------------->
    <div id="table_foot"></div>
    <!---------------- Fin ajout  --------------------->
    <!-- END tablefoot --><!-- END catrow -->




    Problème: colonne "derniers messages" Bannol1xj5
    Sparrow-style
    Sparrow-style
    FémininAge : 39Messages : 32055

    Jeu 22 Sep 2011 - 11:36

    Salut !

    (Mitsuomi... il est trop classe ce perso *o* ... bref, c'pas la question xD)

    Alooors, il te faut déterminer dans ton css une largeur fixe et maximale pour ce cadre là de cette façon :

    Code:
    .statcontour
    {
    width: 200px;
    max-width: 200px;
    }

    Normalement ta colonne ne devrait pas s'élargir plus... Attention quand même, il faut prévoir que ton forum se remplisse et donc que le nombre de sujets et réponses passent à 2 voire 3 chiffres (faut espérer du moins Razz).



    sign
    Apophis
    Apophis
    FémininAge : 29Messages : 5556

    Mar 4 Oct 2011 - 21:09

    Mitsuomi ?
    As-tu pu régler ton problème, suite au message de Sparrow-style ?
    Pense à nous donner des nouvelles...



    The Dark Knight Rises reprenant A Tale of two Cities : épique.

    "I see the lives for which I lay down my life, peaceful, useful, prosperous and happy.
    I see that I hold a sanctuary in their hearts, and in the hearts of their descendants, generations hence.
    It is a far, far better thing that I do, than I have ever done ; it is a far, far better rest that I go to than I have ever known. "
    Contenu sponsorisé


      La date/heure actuelle est Jeu 2 Mai 2024 - 21:30