Catégories & sous forums non centrés

2 participants

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

Résolu Catégories & sous forums non centrés

Message par Kanzaki Ven 25 Jan 2013 - 16:04

Bonjour,

j'ai un gros soucis avec mon forum car les catégories et sous forums ne sont pas centrés, ils vont vers la gauche sans compter qu'ils ne prennent pas toute la largeur de la page d’accueil :/

http://theedgeofhalliwell.forumactif.ws/

Mon seul template de modifié est mon 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 -->
<div class="fondcattitre">
  <div class="titrecat"><div style="margin-left:200px;">{catrow.tablehead.L_FORUM}</div></div>
</div>
<table class="fondcat">
  <!-- END tablehead -->

  <!-- BEGIN forumrow -->
  <tr>
    <td>
  <center>    <div class="contour_cat">
      <center><img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" />
        <br />
        <div class="derniermess">{catrow.forumrow.LAST_POST}</div>
 
      </div>
 <div class="contour_cat">
            <div class="contour_cat">
  <a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a>
            </div>
            <div class="contour_cat">
              <div class="stats_cat">
  {catrow.forumrow.TOPICS} Topics et {catrow.forumrow.POSTS} Messages.
              </div>
            </div>
      <br /><div class="descriptiion">{catrow.forumrow.FORUM_DESC}</div>
          </div>   
          <div class="contour_cat"><div class="sous_forum">
<span class="gensmall" id="subforums">
{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
        </span></div></div>
          <script type="text/javascript">
jQuery('#subforums').html(jQuery('#subforums').html().replace(/, /g,' ')).removeAttr('id');
</script>
          </td>
    </tr></center>

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

Css

Code:

.titrecat {
  font-family: 'Mystery Quest', Times New Roman;
  font-size: 20px;
  color: #f4ebcb;
  border-radius: 10px;
  text-align: center;
  margin-left:5px;
  width: 480px;
  height: 90px;
  font-size: 12px;
}

.fondcattitre{
  background: url(http://img15.hostingpics.net/pics/281682Fondcat.png) no-repeat;
  background-position: left;
  margin-left:auto;
  width: 740px;
  height: 90px;
}

.fondcat {
  background: #354E76;
  border-radius: 0px 10px 10px 10px;
  width: 750px;
  border: 1px dotted black;
  font-size: 10px;
}

.derniermess {
  height: 60px;
}

.forumlink {
  background: #203358;
    width: 850px;
  border-radius: 10px 10px 0 0;
  padding: 2px;
  margin-bottom: -14px;
  margin-left: 20px;
  transition: all 1s;
  -moz-transition: all 1s; /* Firefox 4 */
  -webkit-transition: all 1s; /* Safari and Chrome */
  -o-transition: all 1s; /* Opera */
}

.forumlink:hover {
  background: black;
}

.stats_cat {
  margin-left: 30px;
}

.descriptiion {
  width: 400px;
  height: 110px;
  border-top: 3px solid black;
  border-bottom: 3px solid black;
  border-right: 1px solid black;
  border-left: 1px solid black;
  border-radius: 10px;
  padding-top:3px;
  padding-left: 5px;
  margin-top: -2px;
  box-shadow: 0 0 5px #141a35;
  background: #203358;
  color: #517fae;
  overflow: auto;
  transition: all 2s;
  -moz-transition: all 2s; /* Firefox 4 */
  -webkit-transition: all 2s; /* Safari and Chrome */
  -o-transition: all 2s; /* Opera */
}

.descriptiion:hover {
  border-top: 3px solid #395273;
  border-bottom: 3px solid #395273;
  box-shadow: 0 0 5px #517fae;
  border-right: 1px solid #395273;
  border-left: 1px solid #395273;
}


.sous_forum {
  text-align:center;
  width: 160px;
  height: 110px;
  border-top: 3px solid black;
  border-bottom: 3px solid black;
  border-right: 1px solid black;
  border-left: 1px solid black;
  border-radius: 10px;
  background: #203358;
  overflow:hidden;
  margin-left: 2px;
  margin-top: 13px;
}

.sous_forum a{
  display : block;
  width: 160px;
  height: 15px;
  transition: all 2s;
  -moz-transition: all 2s; /* Firefox 4 */
  -webkit-transition: all 2s; /* Safari and Chrome */
  -o-transition: all 2s; /* Opera */
}

.sous_forum a:hover {
  background: #354E76;
  border-radius: 5px;
}

.contour_cat {
  display : inline-block;
  vertical-align : top;
  margin-left: 0px;
}


Dernière édition par Kanzaki le Ven 25 Jan 2013 - 17:45, édité 1 fois
Kanzaki

Kanzaki
****

Féminin
Messages : 286
Inscrit(e) le : 19/06/2006

http://mademoiselle-x3.forumactif.org/forum.htm
Kanzaki a été remercié(e) par l'auteur de ce sujet.

Résolu Re: Catégories & sous forums non centrés

Message par Matriochka Ven 25 Jan 2013 - 16:19

Bonjour,

Augmente la valeur ici :
.fondcat {
background: #354E76;
border-radius: 0px 10px 10px 10px;
width: 750px;
border: 1px dotted black;
font-size: 10px;
}
Passe-la de 750 pixels à quelque chose comme 960 pixels.
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: Catégories & sous forums non centrés

Message par Kanzaki Ven 25 Jan 2013 - 17:45

ça fonctionne merci ^^
problème résolu
Kanzaki

Kanzaki
****

Féminin
Messages : 286
Inscrit(e) le : 19/06/2006

http://mademoiselle-x3.forumactif.org/forum.htm
Kanzaki 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