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

Langage PHP Discussion :

PHP Table et espace non désiré [PHP 5.3]


Sujet :

Langage PHP

Mode arborescent

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé Avatar de ETVigan
    Homme Profil pro
    Conseil - Consultant en systèmes d'information
    Inscrit en
    Avril 2010
    Messages
    660
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Gard (Languedoc Roussillon)

    Informations professionnelles :
    Activité : Conseil - Consultant en systèmes d'information
    Secteur : Finance

    Informations forums :
    Inscription : Avril 2010
    Messages : 660
    Par défaut PHP Table et espace non désiré
    Bonjour,
    Je rencontre un problème que je ne parviens à résoudre.
    Je l'ai réduit au max et même le petit exemple présenté ici, donne la même situation.
    Soit une ligne blanche entre 2 parties de l'écran....

    Voici le code:
    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
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    	<link href="../css/t2.css" rel="stylesheet" type="text/css"/>
    	<title>Test</title>
    </head>
     
    <!-- ============== -->
    <!--       BODY     -->
    <!-- ============== -->
    <body>
     
    <!-- ========================================================================================= -->
    <!--       Bannière horisontale                                                                -->
    <!-- ========================================================================================= -->
    <table cellspacing="0" cellpadding="0">
    <tr>
        <td colspan="2">
        	<table cellspacing="0" cellpadding="0">
      		<tr>
        		<td>
    				<a href="../index.php" title="L'office du tourisme que je remercie"/>
    					<img src="../images/paysviganais.jpg" class="paysviganais"/>          		
                    </a>	
                </td>
        		<td>
    				<a href="../index.php" title="Retour à l'index du site Je Crapahute">
    					<img src="../images/banniere.jpg" class="banniere"/>          		
                    </a>            
                </td>
       			<td>				
                	<a href="../index.php" title="Esteban er son ami Victor !">
    					<img src="../images/ETVictor.jpg" class="etvictor"/>
                    </a>
                </td>
    		</tr>
    		</table>	
    	</td>
    </tr>
    <!-- ========================================================================================= -->
    <!--       Menu principal[horizontal]                                                          -->
    <!-- ========================================================================================= -->
    <tr valign="top">
        <td colspan="2" class="menu">		
            <table width="100%" cellspacing="0" cellpadding="0">
            <tr>
                <td width="10">&nbsp;</td>
                <td class="menu">
                    <a href="../index.php" title="Bienvenue dans le site de vos randos, je crapahute !" class="menuitem">
                        Accueil        
                    </a>    
                </td>
               <td class="menu">
                    <a href="../membre.php" title="Etre membre de Je Crapahute qu'est ce que cela signifie ?" class="menuitem">
                        Membre        
                    </a>    
                </td>
                <td class="menu">
                    <a href="../contact.php" title="Contactez nous pour une remarque sur le site, un problme technique, c'est ici !" class="menuitem">
                        Contact        </a>	</td>
                <td class="menu">
                    <a href="../randos.php" title="Des randos autour du Vigan, il y en a plein !" class="menuitem">
                        Randos        
                    </a>	
                </td>
               <td class="menu">
                    <a href="../materiel.php"" title="Matos pour vos randos" class="menuitem">
                        Matos       
                    </a>	
                </td>
               <td class="menu">
                    <a href="../biblio.php"" title="Biblio vos randos" class="menuitem">
                        Biblio       
                    </a>	
                </td>
               <td class="menu">
                    <a href="../disconnect.php" title="Se déconnecter de Je Crapahute !" class="menuitem">
                        Déconnection        
                    </a>	
                </td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            </table>
    	</td>
    </tr>
    </table>
    <!-- ========================================================================================= -->
    </body>
    </html>
    La feuille de style est ici:
    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
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
     
    /* CSS Document */
    /* ------------------------------------------------------------------------------------------------------------------------------------ */
    /*                                                                                                                                      */ 
    /*                 0                                                                1                0                                  */
    /*           0     +----------------------------------------------------------------+----------------+ 0                                */
    /*           1     +                                                                [    140         |                                  */
    /*                 + Paysviganais   Cevennes                        ETVictor        |                |                                  */
    /*                 + 113            778                             113             |    Signon      |                                  */
    /*          113    +-------------------------1004-----------------------------------+                |                                  */
    /*                 +                menu                   976 X 23                 |                |                                  */
    /*                 +----------------------------------------------------------------+----------------+  0                               */
    /*                 +                doc                    976 X ?? (cfr Adsense)   +    Adsense     |                                  */
    /*                 +----------------------------------------------------------------+----------------|  0                               */
    /*                 |<--                                    976                      |  <--  140      |                                  */
    /*                 |<--                                   1004                                       |                                  */
    /* ------------------------------------------------------------------------------------------------------------------------------------ */
    body {
        top: 0px;
        width:1004px;
        margin: 0px;
        padding: 0px;
    }
     
    table {
    	/*	border-collapse: collapse;    */
    /*    border:1px solid #000000;   */
    	margin: 0px;
    	padding: 0px;
    	text-align: center;
    }
    /* --------------- */
    /* - 1 re Ligne - */
    /* --------------- */
    .banniere {
    	top: 0px;
    	left: 0px;
    	height:113px;
    	width:1004px;
    	margin: 0;
    }
     
    .paysviganais {
    	top: 0px;
    	left: 0px;
    	height:113px;
    	width:113px;
    	background-image: url(../images/paysviganais.jpg);
    	margin: 0;
    }
     
    .cevennes {
    	top: 0px;
    	left: 114px;
    	width: 778px;
    	height: 113px;
    	text-align: center;
    	background-image: url(../images/banniere.jpg);
    	margin: 0;
    }
     
    .etvictor {
        top: 0px;
        left: 892px;
        height: 113px;
        width: 141px;
        background-image: url(../images/etvictor.jpg);
    }
    /* --------------- */
    /* - 3 me Ligne - */
    /* --------------- */
    .menu {
        top: 113px ;
        height: 16px;
        width: 863px;
        font-weight: lighter;
        font-size: x-small;
        text-indent: 5pt;
        font-style: italic;
        background-color: #ffa500;
        vertical-align: top;
    }
     
    .menuitem {
    	width: 113px;
    	height: 20px;
    	background-position: center;
    	font-weight: lighter;
    	font-size: xx-small;
    }/* --------------------- */
    /* - Vertical - gauche - */
    /* --------------------- */
    .submenu {
        height:20px;
    }
     
    .subitem {
    	width: 113px;
    	height: 20px;
    	background-position: center;
    	font-weight: lighter;
    	font-size: xx-small;
    }
     
    /* ------------------------------------------------------------------------------------------------------------------------------------ */
    /* Zones de l'cran (optimalis pour 104 X ???) ==> syntaxe: class=....                                                                */
    /* ------------------------------------------------------------------------------------------------------------------------------------ */
    .line {
        border: 1px solid #000000; 
    }   
     
    .border {
        border: 1px solid #000000;
    }
    /*  --------------------------------------- */
    /*      Form stuffs                         */
    /*  --------------------------------------- */
    .form_title {
        font-size: x-large;
        color: #663300;
        text-align: center;
        font-weight: bold;
        background-position: center;
    }
     
    .form_subtitle {
    	font-size: medium;
    	color: #663300;
    	text-align: center;
    }
     
    .form_bkg {
    	background-color: #99FFFF;
        background-position: center center;
    }
     
    .form_frg {
        background-color: #FFFFCC;
    }
     
    .form_msg {
        background-color: #999933;
        color: #333300;
        font-size: small;
        font-style: normal;
        font-weight: bold;
        font-variant: normal;
        text-align: center;
        border: 1px solid #666600;
    }
     
    .form_lbl {
    	font-size: small;
    }
     
    .form_fld {
        background-color: #CCFF00;
        color: #999999;
        font-size: medium;
        font-style: normal;
        font-weight: normal;
    }
     
    .form_button {
        background-color: #999933;
        text-align: center;
        border: 1px solid #666600;
        font-size: 10px;
        height: 16px;
    }
     
    .form_select {
        color: #FFFFCC;
        font-size: medium;
        text-align: center;
        vertical-align: top;
    	background-color: #CCFF66;
        background-position: center top;
        border: 1px solid #666600;
    }
     
    .form_textarea {
        color: #003300;
        font-size: small;
        font-style: italic;
        border: 1px solid #666600;
    	background-color: #CCFF66;
    }
     
    /*  --------------------------------------- */
    /*      Field stuffs                        */
    /*  --------------------------------------- */
    .fld_protected {
        color: #000000;
        background-color: #999933;
    }
     
    .fld_mandatory {
        color: #FF0000;
    }
     
    .fld_captcha  {
        background-color: #00FF99;
    }
     
    .fld_border {
        border: 1px solid #666600;
    }
     
    .fld_email {
        color: #003300;
        font-size: small;
        font-style: italic;
        border: 1px solid #666600;
    	background-color: #99CC33;
    }
    /*  --------------------------------------- */
    /*      Table stuffs                        */
    /*  --------------------------------------- */
    .table_title {
    	font-size: x-large;
    	color: #663300;
    	text-align: center;
    	background-color: #999999;
    }
     
    .table_subtitle {
    	font-size: medium;
    	color: #663300;
    	text-align: center;
    }
     
    .table_bkg {
        background-color: #FFFFCC;
        background-position: center center;
        color: #333300;
    }
     
    .table_data {
        text-align: center;
        background-color: #FFFFCC;
        color: #663300;
    }
     
    .table_links {
        font-size: small;
    }
    /*  --------------------------------------------------------------------------- */
    /*      Various "underline, link, hover, active... ETC stuffs                   */
    /*  --------------------------------------------------------------------------- */
    a {
    	font-size: 9px;
    	height: 20px;
    	color: #663300;
    }
     
    a:link {
    	color: #000000;
    	font-weight: bold;
    	font-size: 12px;
    }
     
    a:visited {
    	color: #0000000;
    	font-weight: bold;
    	font-size: 12px;
    }
     
    a:hover {
        color: #339900;
        font-weight: bolder;
    	font-size: 12px;
    }
     
    a:active {
        color: #000000;
    	font-size: 12px;
    }
    /*  --------------------------------------------------------------------------- */
    /*      Various "underline, link, hover, active... ETC stuffs                   */
    /*  --------------------------------------------------------------------------- */
    .small {
    font-size: small
    }
     
    .small_underline {
        font-size: small;
        text-decoration: underline;
    }
     
    .x_small {
    font-size: x-small
    }
     
    .x_smallunderline {
        font-size: x-small;
        text-decoration: underline;
    }
     
    .xx_small {
        font-size: xx-small;
    }
     
    .smallest {
        font-size: 6px;
    }
     
    .xx_smallunderline {
        font-size: xx-small;
        text-decoration: underline;
    }
    /*  --------------------------------------- */
    /*      Table stuffs                        */
    /*  --------------------------------------- */
    Je ne l'ai réduite à une version + simple mais n'ai rien trouvé pourtant cela ne peut être que cela !

    L'écran se trouve en pièce attachée.

    Vous y verrez la ligne blanche entre le sommet de l'écran avec 3 photos et le menu dans une ligne orange.
    Je ne parviens pas à supprimer cet espace.

    Merci @ceusss qui se pencheront sur mon p'tit souci....
    Images attachées Images attachées  

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Espace non désiré entre deux éléments
    Par Rmodevv dans le forum Mise en page CSS
    Réponses: 12
    Dernier message: 13/12/2013, 18h25
  2. Un espace non désiré
    Par zeushaolin dans le forum Langage
    Réponses: 10
    Dernier message: 22/11/2010, 11h45
  3. Doublons non désirés présents dans une table
    Par Mors_Ubyte dans le forum Access
    Réponses: 3
    Dernier message: 16/04/2009, 22h41
  4. radio espacement non désiré
    Par jeepibmx dans le forum Mise en page CSS
    Réponses: 6
    Dernier message: 10/03/2009, 15h33
  5. Positionnement et espace non désiré
    Par tom42 dans le forum Mise en page CSS
    Réponses: 8
    Dernier message: 15/02/2007, 15h02

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