Enlever le centrage des textes sur les forums et catégories

2 participants

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

Résolu Enlever le centrage des textes sur les forums et catégories

Message par dark-hunter666 Mar 6 Sep 2011 - 22:46

Bonsoir ^^

J'ai un petit soucis avec mon forum ^^

J'ai fais modifié mon template pour centrer le texte dans les catégories de mon forum.

Le souci est que je trouve cela très moche ( et que je trouve plus le tuto pour faire machine arrière non plus Smile pas frappez siouplait XD )

Bref y a t-il une âme charitable qui pourrait m'aider dans mon grand désarroi ?

Merci par avance Very Happy


Dernière édition par dark-hunter666 le Jeu 8 Sep 2011 - 20:02, édité 1 fois
dark-hunter666

dark-hunter666
Nouveau membre

Masculin
Messages : 7
Inscrit(e) le : 17/01/2007

http://outerworld-chronicle.max2forum.com/
dark-hunter666 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Enlever le centrage des textes sur les forums et catégories

Message par Lixyr Mer 7 Sep 2011 - 13:01

Bonjour.

Pour vous aider, pourrais-je avoir le template index_box ainsi que votre css ?

Cordialement.


Pour faciliter les recherches, mettez un titre explicite.
Remerciez Enlever le centrage des textes sur les forums et catégories 976083691 le message qui vous a aidé pour que celui-ci soit mis en évidence.
Épinglez votre sujet en résolu Enlever le centrage des textes sur les forums et catégories 3592387030 pour prévenir la modération.

Enlever le centrage des textes sur les forums et catégories Baston10
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: Enlever le centrage des textes sur les forums et catégories

Message par dark-hunter666 Mer 7 Sep 2011 - 20:03

Déjà mon CSS ^^

Code:
/* arrondis des zones de textes by BestRPG */
input,textarea, select {border-radius: 10px; }

/*APPARENCE FORUM*/
.forumline {-moz-border-radius:10px;}
.forumline{color: #421A1A;
-moz-border-radius: 24px 8px 24px 8px;
border-bottom: 5px solid  ;
border-top: 5px solid;
border-right: 5px solid ;
border-left: 5px solid ;}

/*texte toujours justifié*/
.postbody {
    padding-left: 10px;
    padding-right: 10px;
    text-align:justify;
    color: #422F2F
}


/*infobule Staff*/
a.infob {
  position: relative;
  color: #6A5737;
  text-decoration: none;
  border-bottom: 1px #514837 none; /* on souligne le texte */

}
a.infob span {
  display: none; /* on masque l'infobulle */
}
a.infob:hover {
  background: black; /* correction d'un bug IE */
  z-index: 999; /* on définit une valeur pour l'ordre d'affichage */

  cursor: help; /* on change le curseur par défaut en curseur d'aide */
}
a.infob:hover span {
  display: inline; /* on affiche l'infobulle */
  position: absolute;
    width: 170px;

  top: -240px; /* on positionne notre infobulle */
  left: 180px;

  background: #1D1405;
-moz-border-radius: 10px;

  color: #423836;
  padding: 3px;

  border: 2px solid #75583A;

}

/*infobule*/
a.info {
  position: relative;
  color: #423836;
  text-decoration: none;
  border-bottom: 1px gray none; /* on souligne le texte */

}
a.info span {
  display: none; /* on masque l'infobulle */
}
a.info:hover {
  background: black; /* correction d'un bug IE */
  z-index: 999; /* on définit une valeur pour l'ordre d'affichage */

  cursor: help; /* on change le curseur par défaut en curseur d'aide */
}
a.info:hover span {
  display: inline; /* on affiche l'infobulle */
  position: absolute;
    width: 170px;

  top: -20px; /* on positionne notre infobulle */
  left: 40px;

  background: black;
-moz-border-radius: 10px;

  color: #423836;
  padding: 3px;

  border: 2px solid #75583A;

}

Et voici l'index_box

Code:
{JAVAscript}
<!-- BEGIN message_admin_index -->
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
  <!-- BEGIN message_admin_titre -->
  <tr>
      <td class="catHead" height="28"><span class="cattitle">{message_admin_index.message_admin_titre.MES_TITRE}</span></td>
  </tr>
  <!-- END message_admin_titre -->
  <!-- BEGIN message_admin_txt -->
  <tr>
      <td class="row1" rowspan="3" align="center" valign="middle">
      <div class="gensmall">{message_admin_index.message_admin_txt.MES_TXT}</div>
      </td>
  </tr>
  <!-- END message_admin_txt -->
</table>
<!-- END message_admin_index -->

<!-- BEGIN switch_user_login_form_header -->
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
  <tr>
      <td width="100%" valign="top" align="center" class="row1">
        <label><span class="genmed">{L_USERNAME}:</span> <input class="post" type="text" size="10" name="username" /></label>
        <label><span class="genmed">{L_PASSWORD}:</span> <input class="post" type="password" size="10" name="password" /></label>
        {S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" />

        <label><span class="gensmall">{L_AUTO_LOGIN}</span> <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} /></label>

      </td>
  </tr>
</table>
</form>
<!-- END switch_user_login_form_header -->

{CHATBOX_TOP}
{BOARD_INDEX}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
      <td width="50%" valign="top">
        <!-- BEGIN switch_user_logged_in -->
        <span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a>
        <!-- END switch_user_logged_in -->
        <!-- BEGIN switch_delete_cookies -->
       
<a href="{switch_delete_cookies.U_DELETE_COOKIES}" class="gensmall">{switch_delete_cookies.L_DELETE_COOKIES}</a>
        <!-- END switch_delete_cookies -->
        </span>
      </td>
      <td width="50%" align="right">
        <span class="gensmall">
            <a href="{U_TODAY_ACTIVE}" class="gensmall">{L_TODAY_ACTIVE}</a>

            <a href="{U_TODAY_POSTERS}" class="gensmall">{L_TODAY_POSTERS}</a>

            <a href="{U_OVERALL_POSTERS}" class="gensmall">{L_OVERALL_POSTERS}</a>
            <!-- BEGIN switch_on_index -->
              <!-- BEGIN switch_delete_cookies -->
             
<a href="{switch_on_index.switch_delete_cookies.U_DELETE_COOKIES}" class="gensmall">{switch_on_index.switch_delete_cookies.L_DELETE_COOKIES}</a>
              <!-- END switch_delete_cookies -->
            <!-- END switch_on_index -->
        </span>
      </td>
  </tr>
</table>

<!-- BEGIN switch_user_login_form_footer -->
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
  <tr>
      <td width="100%" valign="top" align="center" class="row1">
        <span class="genmed">{L_USERNAME}:</span>
        <input class="post" type="text" size="10" name="username"/>
        <span class="genmed">{L_PASSWORD}:</span>
        <input class="post" type="password" size="10" name="password"/>
        {S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" />

        <span class="gensmall">{L_AUTO_LOGIN}</span>
        <input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
      </td>
  </tr>
</table>
</form>
<!-- END switch_user_login_form_footer -->

<!-- BEGIN disable_viewonline -->
<center><table cellspacing="2" cellpadding="2" width="800px" border="0" class="statistiques">
<tr><td colspan="3"><center><img src="http://img404.imageshack.us/img404/1143/godfallqeelll.png"></center></td></tr>
<tr>
<td width="5px"></td>
<td width="350px">
<br><center>
<span class="groupes"> <a href="http://gods-falls.nextgenforum.com/groupcp.forum?g=4&sid=83dfd4b2fa5ba7a953dabb62803ae656"><font color=#A7A37E size="2"><b>We are the last hope</b></font></a></span> <img src="http://i31.tinypic.com/mugck1.jpg"><div>
<span class="groupes"><a href="http://gods-falls.nextgenforum.com/groupcp.forum?g=3&sid=83dfd4b2fa5ba7a953dabb62803ae656"><font color=#940602 size="2"><b>We finally have the power we deserve</b></font></a> </span> <img src="http://i31.tinypic.com/mugck1.jpg"><div>
<span class="groupes"> <a href="http://gods-falls.nextgenforum.com/groupcp.forum?g=9&sid=83dfd4b2fa5ba7a953dabb62803ae656"><font color=#1B39D1 size="2"><b>We send our enemies straight to hell </b></font></a></span> <img src="http://i31.tinypic.com/mugck1.jpg"><div>
<span class="groupes"> <a href="http://gods-falls.nextgenforum.com/groupcp.forum?g=10&sid=83dfd4b2fa5ba7a953dabb62803ae656"><font color= #4D6C44 size="2"><b>We've made a long trip & now </b></font></a></span> <img src="http://i31.tinypic.com/mugck1.jpg"></span> <div>
<span class="groupes"> <a href="http://gods-falls.nextgenforum.com/groupcp.forum?g=6"><font color="#797D73" size="2"><b>We are nightmares Creatures</b></font></a> </span><div>
<span class="groupes"> <a href="http://gods-falls.nextgenforum.com/groupcp.forum?g=7"><font color="#C27C13" size="2"><b>We are waiting for death or hope..</b></font></a> </span><div>
<span class="groupes"> <a href="http://gods-falls.nextgenforum.com/groupcp.forum?g=5"><font color="#2A7884" size="2"><b>We fell into darkness</b></font></a> </span><div>
<span class="groupes"> <a href="http://gods-falls.nextgenforum.com/groupcp.forum?g=8"><font color="#CDD400" size="2"><b>PNJ</b></font></a><br><br></td>
<td width="400px"><span class="gensmall"><font size=1> <span class="gensmall"><span id="delf">{TOTAL_USERS_ONLINE}</span><script type="text/javascript">document.getElementById('delf').innerHTML=document.getElementById('delf').innerHTML.replace(/utilisateur en ligne/,"Olympien sur le forum");</script><script type="text/javascript">document.getElementById('delf').innerHTML=document.getElementById('delf').innerHTML.replace(/utilisateurs en ligne/,"Olympiens sur le forum ");</script><script type="text/javascript">document.getElementById('delf').innerHTML=document.getElementById('delf').innerHTML.replace(/Enregistré/,"habitant");</script><script type="text/javascript">document.getElementById('delf').innerHTML=document.getElementById('delf').innerHTML.replace(/Enregistrés/,"habitants");</script><script type="text/javascript">document.getElementById('delf').innerHTML=document.getElementById('delf').innerHTML.replace(/Invisible et/,"esprit, ");</script><script type="text/javascript">document.getElementById('delf').innerHTML=document.getElementById('delf').innerHTML.replace(/Invisibles et /,"esprits, ");</script><script type="text/javascript">document.getElementById('delf').innerHTML=document.getElementById('delf').innerHTML.replace(/Invité/,"voyageur");</script><script type="text/javascript">document.getElementById('delf').innerHTML=document.getElementById('delf').innerHTML.replace(/Invités/,"voyageurs");</script></span>. <br>
{NEWEST_USER}. <br>
<span id="kumao">{TOTAL_POSTS}</span><script type="text/javascript">document.getElementById('kumao').innerHTML=document.getElementById('kumao').innerHTML.replace(/membre/,"Olympien");</script><br>
</font><br>
<span class="gensmall">{TOTAL_USERS_ONLINE} <br>
{LOGGED_IN_USER_LIST} </td></center></span></td>
</tr>
</table>

<table width="70%" align="center" style="text-align: justify">
<tr><td>{L_CONNECTED_MEMBERS}</td></tr>
</table>
<table width="58%" align="center" style="text-align: justify">
<tr><td><font size=1>{RECORD_USERS}</font></td></tr>
</table></center>
<!-- END disable_viewonline -->
{CHATBOX_BOTTOM}
<br clear="all" />
<!-- BEGIN switch_legend -->
<table border="0" cellspacing="3" cellpadding="0" align="center">
  <tr>
      <td align="center" width="20"><img src="{FORUM_NEW_IMG}" alt="{L_NEW_POSTS}" /></td>
      <td><span class="gensmall">{L_NEW_POSTS}</span></td>
      <td></td>
      <td align="center" width="20"><img src="{FORUM_IMG}" alt="{L_NO_NEW_POSTS}" /></td>
      <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
      <td>  </td>
      <td align="center" width="20"><img src="{FORUM_LOCKED_IMG}" alt="{L_FORUM_LOCKED}" /></td>
      <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
  </tr>
</table>
<!-- END switch_legend -->

{AUTO_DST}

Merci pour tout ^^
dark-hunter666

dark-hunter666
Nouveau membre

Masculin
Messages : 7
Inscrit(e) le : 17/01/2007

http://outerworld-chronicle.max2forum.com/
dark-hunter666 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Enlever le centrage des textes sur les forums et catégories

Message par Lixyr Mer 7 Sep 2011 - 22:47

Vous m'avez donné votre template index_body. ^^


Pour faciliter les recherches, mettez un titre explicite.
Remerciez Enlever le centrage des textes sur les forums et catégories 976083691 le message qui vous a aidé pour que celui-ci soit mis en évidence.
Épinglez votre sujet en résolu Enlever le centrage des textes sur les forums et catégories 3592387030 pour prévenir la modération.

Enlever le centrage des textes sur les forums et catégories Baston10
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: Enlever le centrage des textes sur les forums et catégories

Message par dark-hunter666 Jeu 8 Sep 2011 - 0:14

oups ^^ ( Me frappez pas !!!!!!!!!!! XD )

Voilà l'index_box ^^

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="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="center"> </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%" align="center" 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"> Contient <b>{catrow.forumrow.POSTS}</b> messages dans <b>{catrow.forumrow.TOPICS} </b> sujets.  <br />
            <!-- 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>
      <!-- BEGIN forum_link_no -->
      
      <td class="row3 over" align="center" valign="middle" height="50">
         <span class="gensmall">{catrow.forumrow.LAST_POST}</span>
      </td>
      <!-- END forum_link_no -->
      <!-- BEGIN forum_link -->
      <td class="row3" colspan="3" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.forum_link.HIT_COUNT}</span></td>
      <!-- END forum_link -->
   </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 -->
dark-hunter666

dark-hunter666
Nouveau membre

Masculin
Messages : 7
Inscrit(e) le : 17/01/2007

http://outerworld-chronicle.max2forum.com/
dark-hunter666 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Enlever le centrage des textes sur les forums et catégories

Message par Lixyr Jeu 8 Sep 2011 - 1:59

Alors, dans votre template, ça se passe ici :

<td class="row1 over" colspan="{catrow.forumrow.INC_SPAN}" valign="top" width="100%" align="center" height="50">
<h{catrow.forumrow.LEVEL} class="hierarchy">
<span class="forumlink">

vous avez un align="center" qui centre le contenu (et même le titre du forum).

Vous pouvez mettre à la place de center :
- right (pour que ce soit à droite)
- left (pour que ce soit à gauche)
- justify (pour que ce soit justify)

A vous de voir comme ça vous plait.


Cordialement.


ps : ici, on ne frappe personne. Juste les bouleys ! À coups de barre d'avertissement et de bannissement. Mr. Green
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: Enlever le centrage des textes sur les forums et catégories

Message par dark-hunter666 Jeu 8 Sep 2011 - 20:02

Ca marche ^^ Merci pour tout ^^

PS : Je le sais je vous taquine Very Happy Merci à toi qui prend un peu de temps avec les désespérés fondateurs Very Happy

dark-hunter666

dark-hunter666
Nouveau membre

Masculin
Messages : 7
Inscrit(e) le : 17/01/2007

http://outerworld-chronicle.max2forum.com/
dark-hunter666 a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Enlever le centrage des textes sur les forums et catégories

Message par Lixyr Jeu 8 Sep 2011 - 20:14

^^ je vous en prie.


Pour faciliter les recherches, mettez un titre explicite.
Remerciez Enlever le centrage des textes sur les forums et catégories 976083691 le message qui vous a aidé pour que celui-ci soit mis en évidence.
Épinglez votre sujet en résolu Enlever le centrage des textes sur les forums et catégories 3592387030 pour prévenir la modération.

Enlever le centrage des textes sur les forums et catégories Baston10
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.

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