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

Mise en page CSS Discussion :

Espaces entre 2 colonnes


Sujet :

Tableau en CSS

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Homme Profil pro
    Responsable de service informatique
    Inscrit en
    Mai 2015
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Corse (Corse)

    Informations professionnelles :
    Activité : Responsable de service informatique

    Informations forums :
    Inscription : Mai 2015
    Messages : 86
    Par défaut Espaces entre 2 colonnes
    Bonjour a tous..
    j'ai sur une page 2 tableaux.
    2 fichiers css, l'un pour le premier tableau qui se trouve en bas de page qui se nomme table
    l'autre pour le second tableau questionnaire qui se nomme "table"
    Je n'arrive pas a elargir le tableau questionnaire "table2"
    Si vous avez une solution.
    Je vous en remercie d'avance.
    Je joins le html et les 2 css

    Code html : 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
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    <!doctype html>
    <html>
    <title>Accueil</title>	
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="css/stylesheet.css" rel="stylesheet" type="text/css">
    <link href="css/stylesheet1.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet"href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"integrity="sha384JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <head>
    <nav class="navbar navbar-expand-lg navbar-light bg-light">
    <a class="navbar-brand" href="#"></a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
    <ul class="navbar-nav mr-auto">
    <li class="nav-item active">
    <a class="nav-link" href="#">Vide
    <span class="sr-only">(current)</span>
    </a>
    </li>
    <li class="nav-item">
    <a class="nav-link" href="#">Vide</a>
    </li>
    <li class="nav-item dropdown">
    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    Chiens
    </a>
    <ul class="dropdown-menu multi" aria-labelledby="navbarDropdown">
    <li class="dropdown-submenu">
     <a class="dropdown-item dropdown-toggle" href="#">Catégorie 1</a>
    <ul class="dropdown-menu">
    <li class="dropdown-item">
    <a href="#">Sous catégorie 1</a>
    </li>
    <li class="dropdown-item">
    <a href="#">Sous catégorie 2</a>
    </li>
    <li class="dropdown-item">
    <a href="#">Sous catégorie 3</a>
    </li>
    </ul>
    </li>
    <li class="dropdown-submenu">
    <a class="dropdown-item dropdown-toggle" href="#">Catégorie 2</a>
    <ul class="dropdown-menu">
    <li class="dropdown-item">
    <a href="#">Sous catégorie 1</a>
    </li>
    </ul>
    </li>
    <li class="dropdown-submenu">
    <a class="dropdown-item dropdown-toggle" href="#">Catégorie 3</a>
    <ul class="dropdown-menu">
    <li class="dropdown-item">
    <a href="#">Sous catégorie 1</a>
    </li>
    <li class="dropdown-item">
    <a href="#">Sous catégorie 2</a>
    </li>
    </ul>
    </li>
    <li class="dropdown-submenu">
    <a class="dropdown-item dropdown-toggle" href="#">Catégorie 4</a>
    <ul class="dropdown-menu">
    <li class="dropdown-item">
    <a href="#">Sous catégorie 1</a>
     </li>
    <li class="dropdown-item">
    <a href="#">Sous catégorie 2</a>
    </li>
    <li class="dropdown-item">
    <a href="#">Sous catégorie 3</a>
    </li>
    </ul>
    </li>
    </ul>
    </li>
    <li class="nav-item">
    <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Vide</a>
    </li>
    </ul>
    <form class="form-inline my-2 my-lg-0">
    <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
    <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Rechercher</button>
    </form>
    </div>
    </nav>
    <link href="css/stylesheet.css" type="text/css">
    <link href="css/stylesheet1.css" type="text/css">	
    <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script>
    window.onload = () => {let menus = document.querySelectorAll(".dropdown-submenu a.dropdown-toggle")for(let menu of menus){menu.addEventListener("click", function(e){e.stopPropagation()e.preventDefault()let sousmenus = document.querySelectorAll(".multi .dropdown-menu")for(let sousmenu of sousmenus){sousmenu.style.display = "none"}
    this.nextElementSibling.style.display = "initial"})}}
    </script>
    <script src="script/jquery-3.6.0.slim.min.js"></script>
    <script src="script/popper.min.js"></script>	
    <script src="script/bootstrap.min.js"></script>	
    </head>
    <div>
    <img class="fond1" src="Images/communes/fond1.png"/>
    <img class="image" src="Images/Users/fond_bandeau_2..png" width="auto" height="50px"/>
    <section>
    <div class="table2"></div>	
    <table width="1000" border-spacing="100px" class="table2">
    <thead>
    <tr>
    <th width="500" ><FONT color="77C416">Creer votre compte</FONT></th>
    <th width="500"><FONT color="77C416">Connectez-vous</FONT></th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <td><strong>Creer votre compte en quelques clics</strong></td>
    <td><strong>Accédez directement à votre compte</strong></td>
    </tr>
    <tr>
    <td>E-mail</td>
    <td>E-mail</td>
    </tr>
    <tr>
    <td><input type="text" id="email" class="form-control"></td>
    <td><input type="text" id="email8" class="form-control"></td>
    </tr>
    <tr>
    <td>Confirmation email</td>
    <td>Mot de passe</td>
    </tr>
    <tr>
    <td><input type="text" id="confirmemail" class="form-control"></td>
    <td><input type="text" id="remdp" class="form-control"></td>
    </tr>
    <tr>
    <td>Mot de passe</td>
    <td></td>
    </tr>
    <tr>
    <td><input type="text" id="mdp" class="form-control"></td>
    <td><a href="#" class="seconnecter">Se connecter</a></td>
    </tr>
    <tr>
    <td>Confirmation mot de passe</td>
    <td></td>
    </tr>
    <tr>
    </tr>
    <tr>
    <td>8 caractères minimum et au moins trois de ces critères :</td>
    <td><input type="checkbox" value="0" onclick="if (this.checked) this.value=1; else this.value=0;alert(this.value);" name="sev1_relance" />   Se souvenir de moi</td>
    </tr>
    <tr>
    <td>une minuscule, une majuscule, un chiffre, un caractère spécial.</td>
    <td><a href="#" class="myButton">Mot de passe oublié</a></td>
    </tr>
    <tr>
    <td>Nom</td>
    <td></td>
    </tr>
    <tr>
    <td><input type="text" id="nom" class="form-control"></td>
    <td></td>
    </tr>
    <tr>
    <td>Prénom</td>
    <td></td>
    </tr>
    <tr>
    <td><input type="text" id="prenom" class="form-control"></td>
    <td></td>
    </tr>
    <tr>
    <td>Adresse</td>
    <td></td>
    </tr>
    <tr>
    <td><input type="text" id="adresse" class="form-control"></td>
    <td></td>
    </tr>
    <tr>
    <td>Code postal</td>
    <td></td>
    </tr>
    <tr>
    <td><input type="text" id="co" class="form-control"></td>
    <td></td>
    </tr>
    <tr>
    <td>Ville</td>
    <td></td>
    </tr>
    <tr>
    <td><input type="text" id="code" class="form-control"></td>
    <td></td>
    </tr>
    <tr>
    <td></td>
    <td></td>
    </tr>
    </tbody>
    </table>
    <div class="table"></div>	
    <table>
    <tr>
    <td></td>
    <td></td>
    <td><strong>Chiens</strong></td>
    </tr>
    <tr>
    <td></td>
    <td></td>
    <td><img src=Images/Icones/puce_vert.png> Trouvés</td>
    </tr>
    <tr>
    <td></td>
    <td></td>
    <td><img src=Images/Icones/puce_vert.png> Perdus</td>
    </tr>
    <tr>
    <td></td>
    <td></td>
    <td><img src=Images/Icones/puce_vert.png> Libre</td>
    </tr>
    <tr>
    <td></td>
    <td></td>
    <td><img src=Images/Icones/puce_vert.png> Libre</td>
    </tr>
    <tr>
    <td></td>
    <td></td>
    <td><img src=Images/Icones/puce_vert.png> Libre</td>
    </tr>
    <tr>
    <td></td>
    <td></td>
    <td><img src=Images/Icones/puce_vert.png> Libre</td>
    </tr>
    <tr>
    <td></td>
    <td></td>
    <td><img src=Images/Icones/puce_vert.png> Libre</td>
    </tr>
    <tr>
    <td></td>
        <td></td>
        <td><img src=Images/Icones/puce_vert.png> Libre</td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td><img src=Images/Icones/puce_vert.png> Libre</td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td><img src=Images/Icones/puce_vert.png> Libre</td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td><img src=Images/Icones/puce_vert.png> Libre</td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td><img src=Images/Icones/puce_vert.png> Libre</td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td><img src=Images/Icones/puce_vert.png> Libre</td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td><img src=Images/Icones/puce_vert.png> Libre</td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td><img src=Images/Icones/puce_vert.png> Libre</td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td><img src=Images/Icones/puce_vert.png> Libre</td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td><img src="image/puce_vert.png"> Libre</td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td><img src=Images/Icones/puce_vert.png> Libre</td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td><img src=Images/Icones/puce_vert.png> Libre</td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td><img src="Images/Icones/puce_vert.png">Compte</td>
     
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td><img src=Images/Icones/puce_vert.png> Partenaires</td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td><img src=Images/Icones/puce_vert.png> Mentions légales</td>
      </tr>
      <tr>
        <td><img src=Images/Icones/puce_vert.png> Libre</td>
        <td><img src=Images/Icones/puce_vert.png> Libre</td>
        <td><img src=Images/Icones/puce_vert.png> Libre</td>
      </tr>
     
    	 </tr>
      <tr>
        <td></td>
        <td></td>
       <td></td>
      </tr>
    </tbody>
    </table>
    <div class="id12"></div>	
     
    </div>
    </html>


    Stylesheet :
    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
    section {text-align: center;}
    .div1,.div2,.div3 {width: 300px;height: 300px;background-color: #FFF;margin:50px;display:inline-block;border:1px solid #393838;}
    .div1 {background-image: url("../Images/Images diverses/front/Alyah_front.jpg");}
    .div2 {background-image: url("../Images/Images diverses/front/Bobby_front.jpg")}
    .div3 {background-image: url("../Images/Images diverses/front/Dayson_front.jpg")}
    .a1 {height: 50px;}
    table1 {height: 1000px;height: 150px;}
    raw {height: 20px;width: 1000px;}
    table {margin: 0 auto;width: 1200px;height: 200px;text-align: left;background-color:none;}
    td {height: 20px;width: 300px;vertical-align: center;}
    .a2 { width: auto; height: 50px;text-decoration: none;}
    .a3 { width: auto; height: 5px;background-color:#CFCCCC}
    .bnd1 {width: auto;height: 50;}
    .th {width: 300px; height: 700px;}
    td,th {border: none;}
    td {text-align: left;height: 20px}
    table {border-collapse: collapse;letter-spacing: normal;font-family: sans-serif;font-size: 16px;width: 800px;}

    Stylesheet1 :

    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
    @charset "utf-8";
    /* Acces restreint */
    table2 {width: 1000px;letter-spacing: normal;font-family: 'Arial', sans-serif;font-size: 17px;}
    td {400px;}
     
    .seconnecter {
    	background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #44c767), color-stop(1, #5cbf2a));
    	background:-moz-linear-gradient(top, #44c767 5%, #5cbf2a 100%);
    	background:-webkit-linear-gradient(top, #44c767 5%, #5cbf2a 100%);
    	background:-o-linear-gradient(top, #44c767 5%, #5cbf2a 100%);
    	background:-ms-linear-gradient(top, #44c767 5%, #5cbf2a 100%);
    	background:linear-gradient(to bottom, #44c767 5%, #5cbf2a 100%);
    	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#44c767', endColorstr='#5cbf2a',GradientType=0);
    	background-color:#44c767;
    	-webkit-border-radius:8px;
    	-moz-border-radius:8px;
    	border-radius:8px;
    	border:1px solid #18ab29;
    	display:inline-block;
    	cursor:pointer;
    	color:#ffffff;
    	font-family:Arial;
    	font-size:21px;
    	font-weight:bold;
    	padding:14px 22px;
    	text-decoration:none;
    	text-shadow:0px 1px 0px #2f6627;
    }
    .seconnecter:hover {
    	background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #5cbf2a), color-stop(1, #44c767));
    	background:-moz-linear-gradient(top, #5cbf2a 5%, #44c767 100%);
    	background:-webkit-linear-gradient(top, #5cbf2a 5%, #44c767 100%);
    	background:-o-linear-gradient(top, #5cbf2a 5%, #44c767 100%);
    	background:-ms-linear-gradient(top, #5cbf2a 5%, #44c767 100%);
    	background:linear-gradient(to bottom, #5cbf2a 5%, #44c767 100%);
    	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5cbf2a', endColorstr='#44c767',GradientType=0);
    	background-color:#5cbf2a;
    }
    .seconnecter:active {
    	position:relative;
    	top:1px;
    }
     
    .myButton {
    	background-color:#44c767;
    	display:inline-block;
    	cursor:pointer;
    	color:#ffffff;
    	font-family:Arial;
    	font-size:17px;
    	font-weight:bold;
    	padding:11px 21px;
    	text-decoration:none;
    	text-shadow:0px 1px 0px #2f6627;
    }
    .myButton:hover {
    	background-color:#5cbf2a;
    }
    .myButton:active {
    	position:relative;
    	top:1px;
    }

    Merci d'avance

  2. #2
    Modérateur

    Avatar de NoSmoking
    Homme Profil pro
    Inscrit en
    Janvier 2011
    Messages
    17 228
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2011
    Messages : 17 228
    Par défaut
    Bonjour,
    il me semble que cela t'a déjà été dit, ton code est imbuvable et non conforme ce dernier point étant une obligation à respecter si tu ne veux pas aller au devant de soucis.

    Il est indispensable que tu commences par le corriger, tu gagnera du temps par la suite !

    Voir pour une validation en ligne

  3. #3
    Membre confirmé
    Homme Profil pro
    Responsable de service informatique
    Inscrit en
    Mai 2015
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Corse (Corse)

    Informations professionnelles :
    Activité : Responsable de service informatique

    Informations forums :
    Inscription : Mai 2015
    Messages : 86
    Par défaut Cela n'est pas bien grave
    Merci pour ta reponse, elle a au moins eu le merite d'etre claire.
    J'ai aussi appris bcp de choses, comme je viens decouvrir que je suis nul, je m'en doutais un peu...
    Toujours plus facile quand on maitrise
    Je vais jeter tout ca et basta...

  4. #4
    Modérateur

    Avatar de NoSmoking
    Homme Profil pro
    Inscrit en
    Janvier 2011
    Messages
    17 228
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2011
    Messages : 17 228
    Par défaut
    ... comme je viens decouvrir que je suis nul, je m'en doutais un peu...
    Je te rassure, on n'a tous été nul à un moment mais il ne faut que cela devienne une fatalité.
    Il y a ceux qui prennent le temps de prendre le temps et les autres parmi lesquels il y à les « chiens fous » et par expérience presque 100% vont droit dans le mur. A toi de voir où tu veux te situer.


    Je vais jeter tout ca et basta...
    Pourquoi, commence par indenter ton code HTML et CSS, il existe des « indentateurs online », une rapide recherche t'en donnera une bonne liste exploitable.

    Concernant ton CSS, regarde où tu as placé des width sur des éléments concernant les <table>, <tr>,<th>,<td>,et au besoin supprime les. Ce sera un bon début.

  5. #5
    Membre confirmé
    Homme Profil pro
    Responsable de service informatique
    Inscrit en
    Mai 2015
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Corse (Corse)

    Informations professionnelles :
    Activité : Responsable de service informatique

    Informations forums :
    Inscription : Mai 2015
    Messages : 86
    Par défaut Espace entre 2 colonnes tabeau
    Re NoSmoking

    Petit mouvement d'humeur.
    Petite question, peut on donner la largeur d'un tableau dans le css?
    Ai retouche et plus d'erreurs..

  6. #6
    Membre confirmé
    Homme Profil pro
    Responsable de service informatique
    Inscrit en
    Mai 2015
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Corse (Corse)

    Informations professionnelles :
    Activité : Responsable de service informatique

    Informations forums :
    Inscription : Mai 2015
    Messages : 86
    Par défaut Paramètre tableau impossible dans CSS
    Bonsoir

    J'essaie de caler mon tableau par le css et cela ne marche pas.
    Cela ne fonctionne que comme cela :
    <table align="center" width="1000px">.
    je joins css et html

    Code HTML : 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
    <!DOCTYPE html>
    <html lang="fr">
    <head>
    <title>Acces restreint</title>
    <!-- chargement des feuilles de style -->
     
    <!-- chargement des scripts -->	
    <script src="scr/jquery.js"></script>
    <script src="scr/modernizr.js"></script>
    <link href="css/style.css" rel="stylesheet" type="text/css">
    <link href="css/stylesheet.css" rel="stylesheet" type="text/css">
    </head>
    <body class="no-js">
    Créez votre compte<!-- Emplacement du menu -->		
    <nav id="topNav">
    <ul>
    <li><a href="#" title="">Accueil</a></li>
    <li><a href="#" title="">Diaporamas</a>
    <ul>
    <li><a href="#" title="">HTML</a></li>
    <li><a href="#" title="">jQuery</a></li>
    <li><a href="#" title="">Flash</a></li>
    </ul>
    </li>
    <li><a href="#" title="">Lightbox</a></li>
    <li><a href="#" title="">Scripts</a>
    <ul>
    <li><a href="#" title="">Javascript</a></li>
    <li><a href="#" title="">jQuery</a></li>
    </ul>     				
    </li>
    <li class="last"><a href="#" title="">Contact</a></li>
    </ul>
    </nav>
    <!-- Emplacement du contenu --><!-- Initialisation de la fonction -->	
    <script>
    var el = document.getElementsByTagName("body")[0];
    el.className = "";
    (function($){
    var nav = $("#topNav");
    nav.find("li").each(function() {
    if ($(this).find("ul").length > 0) {
    $("<span>").text("^").appendTo($(this).children(":first"));
    $(this).mouseenter(function() {
    $(this).find("ul").stop(true, true).slideDown();});
    $(this).mouseleave(function() {
    $(this).find("ul").stop(true, true).slideUp();});}
    });
    })(jQuery);
    </script>
    </body>
    <img src="Images/communes/fond1.png" alt="">
    <img src="Images/Users/fond_bandeau_2..png" alt="">
    <!-- fin navbar --> 
     
    <table align="center" width="1000px">
      <tr>
        <td>AA</td>
        <td>BB</td>
      </tr>
      <tr>
        <td>CC</td>
        <td>DD</td>      
      </tr>
      <tr>
        <td>JEE</td>
        <td>FF</td>   
      </tr>
    </table>
     
    </html>

    CSS :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    table{
      width 1000px,
    	border-collapse: collapse
    }
     
    td{
      border: 1px solid black;
      padding: 10px;
    }
    Merci pour votre aide

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

Discussions similaires

  1. Diminuer l'espace entre les colonnes dans une Table
    Par Gilles_75 dans le forum Mise en page CSS
    Réponses: 14
    Dernier message: 19/05/2017, 22h19
  2. Spool, problème d'espace entre les colonnes
    Par moumoutte32 dans le forum SQL
    Réponses: 15
    Dernier message: 13/10/2011, 13h21
  3. Réponses: 2
    Dernier message: 07/05/2010, 16h38
  4. espacement entre les colonnes
    Par Lcf.vs dans le forum Word
    Réponses: 2
    Dernier message: 09/08/2008, 17h19
  5. espace entre mes colonnes en jsp
    Par paolo2002 dans le forum Servlets/JSP
    Réponses: 1
    Dernier message: 09/03/2008, 21h29

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