IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

HTML Discussion :

Souci avec les tableaux


Sujet :

HTML

  1. #1
    Membre éclairé Avatar de kanzarih
    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Novembre 2002
    Messages
    327
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux

    Informations forums :
    Inscription : Novembre 2002
    Messages : 327
    Par défaut Souci avec les tableaux
    Salut a tous
    j'ai petit problème que je n'arrive pas à résoudre; voila mon code :

    HTML
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
     
    <table class="auth" cellpadding="O" cellspacing="0">
    <tr>
    <td class="auth_top"></td>
    </tr>
    <tr>
    <td class="auth_middel"></td>
    </tr>
    <tr>
    <td valign="top">
    <table class="auth_bottom_tab"  cellpadding="0" cellspacing="0">
    <tr>
    <td class="auth_bottom_left"></td>
    <td class="auth_bottom_middel"></td>
    <td class="auth_bottom_right"></td>
    </tr>
    </table>
    </tr>
    </table>
    CSS
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
     
    .auth{
    width:100%;
    height:100%;
    border:0px;
    margin:0px;
    padding:0px 0px 0px 0px;
    }
    .auth_top{
     background-image:url(../img/col-bgtop.png);
     background-repeat:repeat-x;
     height:16px;
    }
    .auth_middel{
     background-image:url(../img/pix.png);
     background-repeat:repeat x y;
     height:100%;
    }
    .auth_bottom_tab{
    width:100%;
    height:10px;
    border:0px;
    margin:0px 0px 0px 0px;
    padding:0px;
    }
    .auth_bottom_left{
     background-image:url(../img/col-bl.png);
     background-repeat:no-repeat;
     background-position:right;
     height:10px;
     width:8px;
    }
    .auth_bottom_middel{
     background-image:url(../img/col-bm.png);
     background-repeat:repeat-x;
     height:10px;
    }
    .auth_bottom_right{
     background-image:url(../img/col-br.png);
     background-repeat:no-repeat;
     height:10px;
     width:8px;
    }
    le problème est :
    dans le "<tr>" qui contient le tableau "auth_bottom_tab" il y a un blanc qui s'affiche au dessus qui altère l'affichage du tableau global "auth" !
    ainsi j'ai en résultat un panneau bleu avec des bord arrondi mais en bas il y a un espace blanc entre le corps et le footer qui complète l'arrondit du bas

    Merci pour l'aide

  2. #2
    Membre Expert
    Avatar de Jumano
    Profil pro
    Inscrit en
    Février 2007
    Messages
    1 163
    Détails du profil
    Informations personnelles :
    Âge : 57
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Février 2007
    Messages : 1 163
    Par défaut
    Bonjour,
    Tu peux supprimer ton tableau "auth_bottom_tab" et mettre trois colonnes à ton tableau "auth" :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    <table class="auth" border="0" cellpadding="O" cellspacing="0">
    	<tr>
    		<td colspan="3" class="auth_top"></td>
        </tr>
    	<tr>
    		<td colspan="3" class="auth_middel"></td>
    	</tr>
    	<tr>
    		<td class="auth_bottom_left"></td>
    		<td class="auth_bottom_middel"></td>
    		<td class="auth_bottom_right"></td>
    	</tr>
    </table>
    Le CSS modifié :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    <style>
    .auth{
    width:100%;
    height:100%;
    }
    .auth_top{
     background-image:url(../img/col-bgtop.png);
     background-repeat:repeat-x;
     height:16px;
    }
    .auth_middel{
     background-image:url(../img/pix.png);
     background-repeat:repeat x y;
     height:100%;
    }
    .auth_bottom_tab{
    width:100%;
    height:10px;
    }
    .auth_bottom_left{
     background-image:url(../img/col-bl.png);
     background-repeat:no-repeat;
     background-position:right;
     height:10px;
     width:8px;
    }
    .auth_bottom_middel{
     background-image:url(../img/col-bm.png);
     background-repeat:repeat-x;
     height:10px;
    }
    .auth_bottom_right{
     background-image:url(../img/col-br.png);
     background-repeat:no-repeat;
     height:10px;
     width:8px;
    }
     
    </style>

  3. #3
    Membre chevronné Avatar de GihefBey
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    366
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Avril 2006
    Messages : 366
    Par défaut
    Bonjour,

    Tu peux aussi refermer le <td>

    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    <td valign="top">
      <table class="auth_bottom_tab"  cellpadding="0" cellspacing="0">
        <tr>
          <td class="auth_bottom_left"></td>
          <td class="auth_bottom_middel"></td>
          <td class="auth_bottom_right"></td>
        </tr>
      </table>
    </td>

    -

  4. #4
    Membre Expert
    Avatar de Jumano
    Profil pro
    Inscrit en
    Février 2007
    Messages
    1 163
    Détails du profil
    Informations personnelles :
    Âge : 57
    Localisation : France, Rhône (Rhône Alpes)

    Informations forums :
    Inscription : Février 2007
    Messages : 1 163
    Par défaut
    Effectivement la balise <td> n'était pas fermée, mais néanmoins çà ne résoud pas le problème sous FF, en tout cas ...

Discussions similaires

  1. Petit souci avec les tableaux de sqlparameter
    Par zooffy dans le forum ASP.NET
    Réponses: 3
    Dernier message: 20/09/2011, 13h36
  2. [vb excel]Aide avec les tableaux
    Par Mugette dans le forum Macros et VBA Excel
    Réponses: 1
    Dernier message: 27/09/2005, 12h07
  3. petit soucis avec les listes
    Par Death83 dans le forum Balisage (X)HTML et validation W3C
    Réponses: 2
    Dernier message: 03/09/2005, 10h08
  4. Réponses: 7
    Dernier message: 05/10/2004, 13h44

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo