Sous-catégories trop proches de la description.

2 participants

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

Résolu Sous-catégories trop proches de la description.

Message par Bagabou Mar 7 Mai - 2:56

Bonjour ou Bonsoir. I love you
Cela fait plusieurs jours que je me casse la tête pour savoir comment rapprocher les sous-catégories de mes descriptions. Je trouve qu'elles sont beaucoup trop éloignées. J'ai regardé dans mon template et il n'y a aucunes balises <br /> que je peux supprimer. Je vous donne un screen pour que vous ayez tout ça en visuel. tongue

Spoiler:
Je vous donne ma template index box, puisque je pense que c'est là-dedans qu'il faut modifier quelque chose. cat

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}<br />
         {CURRENT_TIME}<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="0">
   <tr>
      <th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th>
      <!--<th nowrap="nowrap" width="50">{L_TOPICS}</th>
      <th nowrap="nowrap" width="50">{L_POSTS}</th>-->
      <th nowrap="nowrap" width="200"><div style="width:200px;">{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">
         <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">
         <h{catrow.forumrow.LEVEL} class="hierarchy">
            <span class="forumlink">
               <a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
            </span>
         </h{catrow.forumrow.LEVEL}>
         <span class="genmed">{catrow.forumrow.FORUM_DESC}</span>
         <span class="gensmall" id="subforums">
  <!-- BEGIN switch_moderators_links -->
  {catrow.forumrow.switch_moderators_links.L_MODERATOR}{catrow.forumrow.switch_moderators_links.MODERATORS}
  <!-- END switch_moderators_links -->
  <div class="forums-liens">{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}</div>
</span>
<script type="text/javascript">
jQuery('#subforums').html(jQuery('#subforums').html().replace(/, /g,' ✧ ')).removeAttr('id');
</script>
      </td>
      <!-- <td class="row3" align="center" valign="middle" height="50">
         <span class="gensmall">{catrow.forumrow.TOPICS}</span>
      </td>-->
      <!-- <td class="row2" align="center" valign="middle" height="50">
         <span class="gensmall">{catrow.forumrow.POSTS}</span>
      </td> -->
            <td class="row3 over" align="center" valign="middle" height="50">
                  <div id="lastinfo"><div id="inf">{catrow.forumrow.TOPICS} missions + {catrow.forumrow.POSTS} balles</div>
                    <span class="gensmall">{catrow.forumrow.LAST_POST}</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" /><!-- END tablefoot --><!-- END catrow -->
Merci d'avance pour toutes les aides apportées. Flowers2


Dernière édition par Bagabou le Mer 8 Mai - 14:15, édité 1 fois
Bagabou

Bagabou
Nouveau membre

Messages : 16
Inscrit(e) le : 02/05/2013

Bagabou a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Sous-catégories trop proches de la description.

Message par Bagabou Mar 7 Mai - 13:00

Bonjour,
Je ne vois pas l'intérêt de donner mon CSS puisque tout se joue sur la template index_box. J'aimerais juste savoir ce qu'il faut modifier dans mon template pour ne pas avoir cet espace entre les sous-catégories et la description. Je mets quand même mon CSS sous hide, même si je n'en vois vraiment pas l'intérêt. Laughing



Merci d'avance. Smile
Bagabou

Bagabou
Nouveau membre

Messages : 16
Inscrit(e) le : 02/05/2013

Bagabou a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Sous-catégories trop proches de la description.

Message par Matriochka Mar 7 Mai - 15:08

Bonjour,

Anzu a eu amplement raison de demander le CSS, puisque c’est de là dont vient le souci Wink

Code:
.forums-liens a { /*liens des sous-forums*/
border-top: dotted 1px color #6C7B16;
padding-top: 3px;
margin-top: 7px;
font-family: tahoma;
color: #8AB5AF;}
margin-top:7px; permet ici de créer un espace de 7 pixels en haut. Supprime-le, et l’espace devrait se réduire.
avatar

Matriochka
Membre actif

Messages : 7604
Inscrit(e) le : 14/07/2010

Matriochka a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Sous-catégories trop proches de la description.

Message par Bagabou Mer 8 Mai - 14:14

Excusez-moi pour le malentendu alors. Merci beaucoup, ça marche. L'espace s'est retiré.
Bagabou

Bagabou
Nouveau membre

Messages : 16
Inscrit(e) le : 02/05/2013

Bagabou 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