CSSActif, le forum, n'est plus maintenu. Il est néanmoins disponible pour consultation. Pour des outils pratiques, rendez-vous sur: Découvrez CSSActif, une collection d'outils et de tutoriels interactifs pour les développeurs Web — HTML, CSS, JavaScript et bien plus! | | (Résolu) Titre de catégorie sur toute la largeur ? | |
| .Lou
{ Membre actif }
Messages : 771
| Ree Après avoir lu quelques tutos sur la modification de la descriptions des forums , je suis arrivée à une disposition qui me convient mais j'ai encore un soucis. Comme on peut voir sur ma capture d'écran , la ligne avec le titre de la catégorie ne prend pas toute la largeur & je n'arrive pas à modifier ça. J'ai beau chercher , j'arrive à tout sauf à lui faire prendre toute la largeur & Voilà mon template. - Code:
-
<!-- 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> </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="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}> <div class="description">{catrow.forumrow.FORUM_DESC}</div> <span class="sujets_messages">{catrow.forumrow.TOPICS} sujets ϟ {catrow.forumrow.POSTS} messages</span></td> <td class="{catrow.forumrow.INC_CLASS}" align="center" valign="middle"> <div class="bulle_msg"><img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /> <div><span class="gensmall">Derniers messages <br /> {catrow.forumrow.LAST_POST}</span></div></div> </td> <td class="{catrow.forumrow.INC_CLASS}" align="center" valign="middle"><div class="sousforum"> {catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS} </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 à la personne qui m'aidera |
Dernière édition par .Lou le Lun 16 Juil 2012, 05:18, édité 1 fois | |
| | | Espeon
Administrateur
Messages : 1819
| C'est une histoire de colspan. Simplement je ne parviens pas à savoir exactement la valeur qu'il faudrait mettre avec les variables du template et le simple screenshot. Est-ce-que tu aurais un lien direct vers ton forum pour constater le rendu (et donc le code source final) ? Merci | | |
| | | .Lou
{ Membre actif }
Messages : 771
| | | | Espeon
Administrateur
Messages : 1819
| Essaie donc avec cette version du code - Code:
-
<!-- BEGIN catrow --><!-- BEGIN tablehead --><table class="forumline" width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th colspan="3" 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}">{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="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}> <div class="description">{catrow.forumrow.FORUM_DESC}</div> <span class="sujets_messages">{catrow.forumrow.TOPICS} sujets ϟ {catrow.forumrow.POSTS} messages</span></td> <td class="{catrow.forumrow.INC_CLASS}" align="center" valign="middle"> <div class="bulle_msg"><img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /> <div><span class="gensmall">Derniers messages <br /> {catrow.forumrow.LAST_POST}</span></div></div> </td> <td class="{catrow.forumrow.INC_CLASS}" align="center" valign="middle"><div class="sousforum"> {catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS} </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 --> | | |
| | | .Lou
{ Membre actif }
Messages : 771
| Ca marche , nickel. Merci T'as fais comment au juste ? Que je sache pour la prochaine fois | | |
| | | Espeon
Administrateur
Messages : 1819
| J'ai modifié cette ligne : - Code:
-
<th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th> par celle-ci - Code:
-
<th colspan="3" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th> J'ai fixé le colspan à 3, car la valeur de la variable {catrow.tablehead.INC_SPAN} vaut 2 mais elle ne prend pas en compte les changements "en dur" que tu as du faire toi-même dans le template, à savoir de rajouter une colonne. Le colspan permet à une cellule de prendre la place du nombre de colonnes correspondant à ladite valeur : ici il y a 3 colonnes, donc il faut un colspan de 3 (et non 2) pour que le titre de la catégorie soit positionné sur toute la largeur | | |
| | | .Lou
{ Membre actif }
Messages : 771
| Ah ok. Merci pour ton explication Problème résolu ! | | |
| | | 'Christa
Lostmindy
Messages : 2856
| | | | Contenu sponsorisé
| | | | | (Résolu) Titre de catégorie sur toute la largeur ? | |
|
Sujets similaires | |
|
| Permission de ce forum: | Vous ne pouvez pas répondre aux sujets dans ce forum
| |
| |
| |
|
| Partenaires Or
|
|