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 :

Dimensions d'une div


Sujet :

Dimensionnement en CSS

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé
    Profil pro
    Inscrit en
    Décembre 2012
    Messages
    335
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2012
    Messages : 335
    Par défaut Dimensions d'une div
    Bonjour à tous,

    J'affiche une image (carte) sur une page html.
    Je voudrais grossir cette image mais n'arrive pas à redimensionner la div de id carte.
    il s'agit en fait d'une carte leaflet mais mon pb n'y est pas lié.
    Suite aux conseils de Mathieu, je pense plus qu'il s'agit d'un pb CSS.
    J'ai tout de meme tenté simplement d'augmenter la largeur de l'élément #carte ce qui pour effet juste de recopier cette carte plusieurs fois sur la largeur .
    J'ai essayé de modifier mes codes de plusieurs manières mais rien ne marche comme je veux.

    Pouvez-vous m'aider ?

    Je joins mes codes : d'abord HTML puis 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
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    <e<!DOCTYPE html>
    <!--[if lt IE 7 ]> <html class="no-js ie6"> <![endif]-->
    <!--[if IE 7 ]>    <html class="no-js ie7"> <![endif]-->
    <!--[if IE 8 ]>    <html class="no-js ie8"> <![endif]-->
    <!--[if IE 9 ]>    <html class="no-js ie9"> <![endif]-->
    <!--[if (gt IE 9)|!(IE)]><!--> <html lang="fr"> <!--<![endif]-->
    	<head>
        <meta http-equiv="content-type"	charset="UTF-8">
        <title>popi Fr&egrave;res</title>
        <link rel="stylesheet" type="text/css" href="css/2018 01 07 site v0.css" />
    	  <link rel="shortcut icon" type="image/png"  href="favicon.png" />
    	  <meta name="viewport" content="width=device-width">
    	  <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v1.0.3/leaflet.css">
           <script src="http://cdn.leafletjs.com/leaflet/v1.0.3/leaflet.js"></script>	 
    	  <style>
    #main {
      margin: 0 auto;
      max-width: 60em;
      }
    #cadre_carte {
      position: relative;
      top:  5em;
      right:  20em;
      height: 6em;
      margin: 0 auto;
      border: 5px   font-size: 1em;
      box-shadow: 0 2px 4px 2px #CCC;
      width: 40%;
      }
     #carte {
      height: 100%;
      width: 40%;
    }
     
    /* déclaration pour les markers */
    .circle {
      box-sizing: border-box;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background-color: rgba(255,255,255,0.3);
      box-shadow: 0 0 10px #888;
    }
    .circle2 {
      box-sizing: border-box;
      width: 15px;
      height: 15px;
      border-radius: 50%;
      background-color: rgba(255,255,255,0.3);
      box-shadow: 0 0 10px #888;
    }
    .circle3 {
      box-sizing: border-box;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background-color: rgba(255,255,255,0.3);
      box-shadow: 0 0 10px #888;
    }
    .circle4 {
      box-sizing: border-box;
      width: 25px;
      height: 25px;
      border-radius: 50%;
      background-color: rgba(255,255,255,0.3);
      box-shadow: 0 0 10px #888;
    }
    .circle-marker {
      box-sizing: border-box;
      width: 30px;
      height: 30px;
    }
    .circle-red {
      border: 5px solid #F00;
    }
    .circle-green {
      border: 5px solid #0A0;
    }
    .circle-orange {
      border: 5px solid #F63;
    }
    .circle-bleu {
      border: 5px solid #00F;
    }
    .circle-violet {
      border: 5px solid #909;
    }
    .circle-noir {
      border: 4px solid #000;
    }
    .circle-noir1 {
      border: 2px solid #000;
    }
    .circle-animate {
      animation-name: show-hide;
      animation-duration: 1s;
      animation-iteration-count: infinite;
      transform: scale(1);
    }
    @keyframes show-hide {
      0%   { transform: scale(1);}
      50%  { transform: scale(.5);}
      100% { transform: scale(1);}
    }
    </style>
    		<!--[if lt IE 9]>
    	    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    	<![endif]-->
    	</head>
    	<body>
    		<header>
                   <figure id='mylogo'> 
         			<img src="img/logo.jpg" alt="logo">
                   </figure>
                   <div id="titrePrincipal">			
         			<h1><span class="maj">popi f</span>r&egrave;res</h1>
         	         	<span id="text">
            		          <span class="maj">n</span>um&eacute;ro de <span class="maj">t</span>&eacute;l&eacute;phone :
            		          +33 (0)1 2x xx xx xx  
            		          <br>
            		          <span class="maj">a</span>dresse <span class="maj">p</span>ostale :
            		          75014 PARIS
            		          <br>
            		          <span class="maj">a</span>dresse <span class="maj">e</span>-mail : 
            		          <a class="con" href="mailto:popi@wanadoo.fr">popi@wanadoo.fr</a></p>
       		          </span> 
         		</div>
    			<form class="formLang">
    				<label for="l"><span class="maj">c</span>hoisissez votre langue :</label>
    				<select class="selLang" name="l">
    					<option class="fr" value="fr" label="true" selected="selected"><span class="maj">f</span>ran&ccedil;ais</option>
    					<option class="en" value="en"><span class="maj">e</span>nglish</option>
    				</select>
    			</form>
    			<nav>
    			<span class="ent"><span class="maj">n</span>otre <span class="maj">e</span>ntreprise</span>
    				<span class="pro"><span class="maj">n</span>os <span class="maj">p</span>roduits</span>
    				<span class="cli"><span class="maj">n</span>otre <span class="maj">c</span>lient&egrave;le</span>
    				<span class="mar"><span class="maj">n</span>os <span class="maj">m</span>arch&eacute;s</span>
    				<span class="tem"><span class="maj">t</span>&eacute;moignages</span>
    			</nav>
    .		</header>
       	<section>
       	<div id="main">
      <div class="header">
      <div class="section">
        <div id="cadre_carte">
          <div id="carte">yann est intelligent </div>
          et capable 
         </div>
      </div>
    </div>
       		<article></article>
       	</section>
       	<footer>
       	      <q class="italic"><span class="maj">s</span>ite <span class="maj">w</span>eb r&eacute;alis&eacute; par <a href="mail to:site.super25@gmail.com "><span class="maj">y</span>ann <span class="maj">quentin</span></a></q>
       	</footer>
       	<script type="text/javascript" src="js/2018 01 07 site v0.js"></script>
       <script>
    var oMap;
    var animEnCours = false;
    var destination = {
        "paris" : {
            "libelle" : "Paris",
            "point" : L.latLng(48.85342, 2.3488),
            "zoom" : 3.5,
        },
        "cameroun" : {
            "libelle" : "Cameroun",
            "point" : L.latLng(48.85342, 2.3488),
            "zoom" : 3.5,
        },
        "comores" : {
            "libelle" : "Comores",
            "point" : L.latLng(-11.72, 43.25),
            "zoom" : 3.5,
        },
        "ethiopie" : {
            "libelle" : "Ethiopie",
            "point" : L.latLng(8.9800, 38.7989),
            "zoom" : 3.5,
        },
        "guadeloupe" : {
            "libelle" : "Guadeloupe",
            "point" : L.latLng(6.265, -61.551),
            "zoom" : 3.5,
        },
        "guyane" : {
            "libelle" : "Guyane",
            "point" : L.latLng(4.144817,-52.8442),
            "zoom" : 3.5,
        },
        "reunion" : {
            "libelle" : "La Réunion",
            "point" : L.latLng(-21.1151, 55.5363),
            "zoom" : 8,
        },
        "madagascar" : {
            "libelle" : "Madagascar",
            "point" : L.latLng(-18.77, 46.9),
            "zoom" : 3.5,
        },
        "martinique" : {
            "libelle" : "Martinique",
            "point" : L.latLng(14.64, -61.01669),
            "zoom" : 3.5,
        },
        "maurice" : {
            "libelle" : "Maurice",
            "point" : L.latLng(14.64, -61.01669),
            "zoom" : 3.5,
        },
        "mayotte" : {
            "libelle" : "Mayotte",
            "point" : L.latLng(-12.768,45.2286),
            "zoom" : 3.5,
        },
        "tahiti" : {
            "libelle" : "Tahiti",
            "point" : L.latLng(-17.6509, -149.426),
            "zoom" : 3.5,
        },
        //...
    };
    /*var destination = {
     
      'paris':    L.latLng(48.85342, 2.3488),
      'cameroun':      L.latLng(5.76463, 11.75537),
      'comores' :      L.latLng(-11.72, 43.25),
      'ethiopie' :  L.latLng(8.9800, 38.7989),
      'guadeloupe' :      L.latLng(16.265, -61.551),
      'guyane' :      L.latLng(4.144817,-52.8442),
      'reunion' :      L.latLng(-21.1151, 55.5363),
      'madagascar' :      L.latLng(-18.77, 46.9),
      'martinique' :      L.latLng(14.64, -61.01669),
      'maurice' :      L.latLng(-20.3484,57.5833),
      'mayotte' :      L.latLng(-12.768,45.2286),
      'tahiti' :      L.latLng(-17.6509, -149.426)
    };
    */
    // création des divIcon
    var oIconRed = L.divIcon({
      iconAnchor : [15, 15],
      className: 'circle-marker',
      html: '<div class="circle-animate circle circle-red"></div>'
    });
    var oIconGreen = L.divIcon({
      iconAnchor : [15, 15],
      className: 'circle-marker',
      html: '<div class="circle-animate circle2 circle-green"></div>'
    });
    var oIconOrange = L.divIcon({
      iconAnchor : [15, 15],
      className: 'circle-marker',
      html: '<div class="circle-animate circle2 circle-orange"></div>'
    });
    var oIconBleu = L.divIcon({
      iconAnchor : [15, 15],
      className: 'circle-marker',
      html: '<div class="circle-animate circle2 circle-bleu"></div>'
    });
    var oIconViolet = L.divIcon({
      iconAnchor : [15, 15],
      className: 'circle-marker',
      html: '<div class="circle-animate circle2 circle-violet"></div>'
    });
    var oIconNoir = L.divIcon({
      iconAnchor : [15, 15],
      className: 'circle-marker',
      html: '<div class="circle-animate circle2 circle-noir"></div>'
    });
    var oIconNoir1a = L.divIcon({
      iconAnchor : [15, 15],
      className: 'circle-marker',
      html: '<div class="circle-animate circle3 circle-noir"></div>'
    });
    var oIconNoir1b = L.divIcon({
      iconAnchor : [15, 15],
      className: 'circle-marker',
      html: '<div class="circle-animate circle4 circle-noir1"></div>'
    });
    // création des markers
    //paris
    var oMarkerRed   = L.marker( [48.85342, 2.3488], {icon: oIconRed});
    //cameroun
    var oMarkerNoir = L.marker( [5.76463, 11.75537], {icon: oIconNoir});
    //comores
    var oMarkerNoir1 = L.marker( [-11.72, 43.25], {icon: oIconNoir});
    //ethiopie
    var oMarkerNoir2 = L.marker( [8.9800, 38.7989], {icon: oIconNoir});
    //guadeloupe
    var oMarkerNoir3 = L.marker( [16.265, -61.551], {icon: oIconNoir1b});
    //guyane
    var oMarkerNoir4 = L.marker( [4.144817,-52.8442], {icon: oIconNoir});
    //la réunion
    var oMarkerNoir5 = L.marker( [-21.1151, 55.5363], {icon: oIconNoir1a});
    //madagascar
    var oMarkerNoir6 = L.marker( [-18.77, 46.9], {icon: oIconNoir});
    //martinique
    var oMarkerNoir7 = L.marker( [14.64, -61.01669], {icon: oIconNoir});
    //maurice
    var oMarkerNoir8 = L.marker( [-20.3484,57.5833], {icon: oIconNoir});
    //mayotte
    var oMarkerNoir9 = L.marker( [-12.768,45.2286], {icon: oIconNoir1a});
    //tahiti
    var oMarkerNoir10 = L.marker( [-17.6509, -149.426], {icon: oIconNoir});
    // création de la carte
    var zoomInitial = 9; // ce que l'on modifie versus test5 9 au leu de 7
    var zoomTravel  = 3; 
    oMap = L.map('carte', {
        zoomAnimationThreshold: 20, 
        zoomControl: false,          // voir <a href="http://leafletjs.com/reference-1.1.0.html#map-zoomcontrol" target="_blank">http://leafletjs.com/reference-1.1.0...ap-zoomcontrol</a>
        duration: 5,
        center: [ 0, 0 ],
        zoom: 1.1 
    });
    oMap.addLayer( L.tileLayer(
        'http://{s}.tile.osm.org/{z}/{x}/{y}.png',
        {
          attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
        }
      ));
    // place les marker rouge et vert sur destination et départ
        oMarkerRed.addTo(oMap); 
        oMarkerNoir.addTo(oMap);   
        oMarkerNoir1.addTo(oMap);    
        oMarkerNoir2.addTo(oMap);    
        oMarkerNoir3.addTo(oMap);    
        oMarkerNoir4.addTo(oMap);    
        oMarkerNoir5.addTo(oMap);    
        oMarkerNoir6.addTo(oMap);    
        oMarkerNoir7.addTo(oMap);    
        oMarkerNoir8.addTo(oMap);    
        oMarkerNoir9.addTo(oMap);    
        oMarkerNoir10.addTo(oMap);   
    // fonction sur click oMap
    oMap.on('click', function (e) {
      // affiche marker vert au click
      oMarkerGreen.setLatLng([e.latlng.lat, e.latlng.lng]).addTo(this);
      oMarkerGreen.on('click', function (e) {
        this.remove(oMap);
      })
    });
     
    function swapMarker(where){
      // supprime marker rouge
      oMarkerRed.remove(oMap);
      // affiche marker vert
      oMarkerGreen.setLatLng(where).addTo(oMap);
      // autorise autre animation
      animEnCours = false;
    }
     
    function gotoDestination(where) {
      // si animation en cours on quitte
      if (animEnCours) {
        return;
      }
      animEnCours = true;
      var zoomCarte = oMap.getZoom();
      // récupération point de départ
      var pointDepart = oMap.hasLayer(oMarkerGreen) ? oMarkerGreen.getLatLng() : oMap.getCenter();
      // place les marker rouge et vert sur destination et départ
      oMarkerRed.setLatLng(where).addTo(oMap);
      oMarkerGreen.setLatLng(pointDepart).addTo(oMap);
      // calcul distance déplacement
      var distance = oMap.distance(pointDepart, where)/1000;
      // calcul durée déplacement
      var delay = distance / 2000;
      // accés direct si distance < 1000 km
      if (distance < 1000) {
      
        // réajuste position et zoom
       console.log(where); 
       switch(where) {
         default :  oMap.setView(L.latLng(0, 0), zoomInitial);
         break;
         case L.latLng(48.85342, 2.3488):
         oMap.setView(where,zoom);
         break;
         case L.latLng(16.265, -61.551):
         oMap.setView(where,8);
         break;}
        // change markers
        swapMarker(where);
      } 
      else {
         // défini action en fin de zoom
        oMap.once('zoomend', function () {
          // déplacement vers destination
          setTimeout(function () {
            // défini action en fin de déplacement
            oMap.once('moveend', function () {
              // on zooom sur destination
              setTimeout(function () {
          // réajuste position et zoom
         switch(where) {
         default :  oMap.setView(where, zoomInitial);
         break;
         case 'paris':
         oMap.setView(where,3);
         break;
         case 'guadeloupe':
         oMap.setView(where,9);
         break;
      }
            // change markers
                swapMarker(where);
              }, 500);  
            });
            // déplacement
            oMap.panTo(where, {
              animate: true,
              duration: delay
            });
          }, 500);
        });
        // ajuste le zoom minimum
        if (zoomCarte === zoomTravel) {
          oMap.fireEvent('zoomend');
        } 
        else {
          oMap.setZoom(zoomTravel);
        }
      }
    }
    </script>	
    	</body>
    </html>

    Code CSS : 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
    footer q {
         text-align: left;
         font-size: 0.8em;
         display: block;
    }
    #t1 tr:first-child th {
         width: 39%;
         height:39%
    }
    #t1 {
         border-radius: 1px;
         border-collapse: collapse;
         border: 1px black solid;
    }
    #t1 th,#t1 td {
         text-align: center;
         border: 1px black solid collapse;
         width: 13%;
         height: 13%;
         margin:0 auto;
    }
    nav {
         font: 2em bold;
         width:80%;
         margin: 0 auto;
     
    }    
    #logo, #titrePrincipal {
         display: inline-block;
    }
    #titrePrincipal {
         width: 6000px;
         text-align: center;
         margin:0 auto;
    }
    #text {
         font: 2em underline;
    }
    #mylogo {
         position: absolute;
         4top: 5%;
         left: 5%;
         vertical-align: top;
    }
    i,.second li{
         display: inline-block;
    }
         i {
      border: solid black;
      border-width: 0 3px 3px 0;
     
      padding: 3px;
    }
     
    .right {
        margin-right: 10px;
        transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
    }
    html,body {
    	height: 100%;
    	width: 100%;
    }
    section {
    	margin: 0 auto;
    	width: 95%; 
    	text-align: center;
    	border: 5px black solid;
    	border-radius: 2px;
    	/*height: 65%;*/
    }
    #carte, article {
         vertical-align: top;
    	display: inline-block;
    	margin: 0 auto;
    	font-size: 1.5em;
    }
    aside {
    	height: 70%;
    	border: 1px black solid;
    }
    header {
    	margin: 0 auto;
    	border: 1px black solid;
    	height: 30%;
    	width: 95%;
    }
    .formLang {
    	position: absolute;
    	top: 5%;
    	right: 5%;
    }
    article {
          width: 50%;
          position: relative;
          top: 2em;
    }
    aside {
    	background-color: #ff9933;
         width: 40%;	
    }
    h1 {
         font-size: 3em;
    }!
    h2 {
    	font-size: 2em;
    }
    h2,h1 {
    	text-align: center;
    	text-decoration: underline;
    }
    h3 {
    	font-size: 1.5em;
    }
    .bold {
    	font-weight: bold;
    }
    q {
    	font-size: 1.1em;
    	font-style: italic;
    }
    .ent:hover,.pro:hover,.cli:hover,.tem:hover,.mar:hover {
         color: red;
    }
    .a2c,.pro,.cli,.tem,.mar {
    	margin-left: 48px;
    }
    .ent,nav a:first-child { 
    	margin-left: 1em;
    }
    .maj {
    	text-transform: uppercase;
    }
    .second li {
    	list-style-type: square;
    }
    .right::after {
         content: "";	
    }
    /*#up {
    	position: relative;
    	bottom: 600px;
    }*/
    h1,h2,nav a {
         font-family: 'Arial','Serif';
    }
    body {
     
    }
    #mar_g,#mar_l {
         margin: 0 auto;
         width: 22%;
    	  display: inline-block;
    	  vertical-align: middle;
    }
    #mar_l {
     
    }
    #mar_g {
     
    }
    #mapid {
         margin: 0 auto;	
         vertical-align: middle;
         width: 20%;
         height : 20%;
         border:1px solid black;
         border-radius: 10%;    
    }
    body {
         font-size: 2.8em;
    }
    #mar_l li:focus {
    	font-weight: bold;
    }
    header,section {
        padding: 2%;
    }
    .italic {
    	font-style: italic;
    }
    footer a{
         color: blue;
         text-decoration: underline;
    }

  2. #2
    Modérateur

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

    Informations forums :
    Inscription : Janvier 2011
    Messages : 17 211
    Par défaut
    Bonjour,
    trop d'erreurs dans ton code CSS, commence par le valider : CSS Validation Service.

  3. #3
    Membre éclairé
    Profil pro
    Inscrit en
    Décembre 2012
    Messages
    335
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2012
    Messages : 335
    Par défaut
    Merci pour le conseil, j'ai vérifié et validé grace au lien le code CSS ; mais j'ai un autre pb :

    la propriété text-shadow n'existe pas avec cette vérification pourtant je l'ai trouvée sur différents sites .
    comment puis-je faire pour faire du texte ombrée ?

    Code css : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    .goldenrod {
              font-family: Calibri;
              text-shadow: 1px 1px 2px black;
              color: #FF6347;
              }

    merci d'avance

  4. #4
    Expert confirmé
    Avatar de ProgElecT
    Homme Profil pro
    Retraité
    Inscrit en
    Décembre 2004
    Messages
    6 132
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 69
    Localisation : France, Haute Savoie (Rhône Alpes)

    Informations professionnelles :
    Activité : Retraité
    Secteur : Communication - Médias

    Informations forums :
    Inscription : Décembre 2004
    Messages : 6 132
    Par défaut
    Salut

    Pour la vérification du CSS avec le lien CSS Validation Service , il faut paramétrer
    Options supplémentaires
    Profil : CSS niveau 3
    Là, tu verras qu'il n'y a pas d'erreur et que la réponse est : Ce document est valide conformément à la recommandation CSS niveau 3 !
    :whistle:pourquoi pas, pour remercier, un :plusser: pour celui/ceux qui vous ont dépannés.
    saut de ligne
    OOOOOOOOO👉 → → Ma page perso sur DVP ← ← 👈

  5. #5
    Membre éclairé
    Profil pro
    Inscrit en
    Décembre 2012
    Messages
    335
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2012
    Messages : 335
    Par défaut
    merci de l'information.
    c'est que j'ai fait et le résultat est validé.

    Code css : 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
    .bold{
         font-weight: bold;
    }
    .goldenrod {
              font-family: Calibri;
              text-shadow:  2px 2px #000000;
              color: #FF6347;
              }
    footer q {
         text-align: left;
         font-size: 0.8em;
         display: block;
    }
    #t1 tr:first-child th, #t2 tr:first-child th {
         width: 39%;
         height:39%;
    }
    #t2 {
         border-collapse: collapse;
         border: 1px black;
         border-style: dotted;
         font-size: 1.2em;
    }
    #t1 {
         border-collapse: collapse;
         border: 1px blue ;
         border-style:solid;
         font-size: 1.2em;
    }
    #t2 th,#t2 td {
         text-align: center;
         border-collapse: collapse;
         border: 1px black;
         border-style: dotted;
         width: 13%;
         height: 13%;
         margin:0 auto;
    }
    #t1 th {
         text-align: center;
         border-collapse: collapse;
         border: 1px blue;
         border-style: solid;
         width: 11%;
         height: 13%;
         margin:0 auto;
    }   
     #t1 td {
         text-align: center;
         border-collapse: collapse;
         border: 1px blue;
         border-style: solid;
         width: 50%;
         height: 13%;
         margin:0 auto;
    } 
    #t1 tr {
         padding-bottom: 1em;
    }      
    nav {
         font: 2em bold;
         width:80%;
         margin: 0 auto;
     
    } 
    nav div {
         display: inline-block;
     
    }
    nav div:hover {
        color: red;
    } 
    #logo, #titrePrincipal {
         display: inline-block;
    }
    #titrePrincipal {
         width: 6000px;
         text-align: center;
         margin:0 auto;
    }
    #text {
         font: 2em underline;
    }
    #mylogo {
         position: absolute;
         top: 5%;
         left: 5%;
         vertical-align: top;
    }
    i,.second li{
         display: inline-block;
    }
     i {
      border: solid black;
      border-width: 0 3px 3px 0;
      padding: 3px;
    }
     
    .right {
        margin-right: 10px;
        list-style-type: square;
    }
    html,body {
    	height: 100%;
    	width: 100%;
    }
    section {
    	margin: 0 auto;
    	width: 95%; 
    	text-align: center;
    	border: 5px black;
    	border-style: solid;
    	/*height: 65%;*/
    }
    #carte, article {
         vertical-align: top;
    	display: inline-block;
    	margin: 0 auto;
    	font-size: 1.5em;
    }
    aside {
    	height: 70%;
    	border: 1px black solid;
    }
    header {
    	margin: 0 auto;
    	border: 1px black solid;
    	height: 30%;
    	width: 95%;
    }
    .formLang {
    	position: absolute;
    	top: 5%;
    	right: 5%;
    }
    article {
          width: 80%;
          position:relative;
          bottom: 2.2em; 
          left: 11em;
    }
    aside {
    	background-color: #ff9933;
         width: 40%;	
    }
    h1 {
         font-size: 3em;
    }
    h2 {
    	font-size: 2em;
    }
    h2,h1 {
    	text-align: center;
    	text-decoration: underline;
    }
    h3 {
    	font-size: 1.5em;
    }
    .bold {
    	font-weight: bold;
    }
    q {
    	font-size: 1.1em;
    	font-style: italic;
    }
    .ent:hover,.pro:hover,.cli:hover,.tem:hover,.mar:hover {
         color: red;
    }
    .a2c,.pro,.cli,.tem,.mar {
    	margin-left: 48px;
    }
    .ent,nav div:first-child { 
    	margin-left: 1em;
    }
    .maj {
    	text-transform: uppercase;
    }
    .second li {
    	list-style-type: square;
    }
    .right:after {
         content: "";	
    }
    /*#up {
    	position: relative;
    	bottom: 600px;
    }*/
    h1,h2,nav div {
         font-family: 'Arial','Serif';
    }
    body {
     
    }
    #mar_g,#mar_l {
         margin: 0 auto;
         width: 22%;
    	  display: inline-block;
    	  vertical-align: middle;
    }
    #mar_l {
     
    }
    #mar_g {
     
    }
    #mapid {
         margin: 0 auto;	
         vertical-align: middle;
         width: 20%;
         height : 20%;
         border:1px black;
         border-style: solid;
    }
    body {
         font-size: 2.8em;
    }
    #mar_l li:focus {
    	font-weight: bold;
    }
    header,section {
        padding: 2%;
    }
    .italic {
    	font-style: italic;
    }
    footer a{
         color: blue;
         text-decoration: underline;
    }

    maintenant j'aurai besoin de votre aide pour agrandir ma carte .

  6. #6
    Membre extrêmement actif Avatar de psychadelic
    Profil pro
    Inscrit en
    Mai 2010
    Messages
    2 532
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2010
    Messages : 2 532
    Par défaut
    j'ai remplacé la ligne 10
    <link rel="stylesheet" type="text/css" href="css/2018 01 07 site v0.css" />

    avec le lien sur ta nouvelle feuille de style et ça donne n'importe quoi.

    d'ailleurs, c'est la premiere fois que je vois un nom de fichier avec des espaces dedans.. et je me demande si le serveur lighttpd sait le traiter

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

Discussions similaires

  1. Dimension d'une div
    Par bza88 dans le forum Balisage (X)HTML et validation W3C
    Réponses: 1
    Dernier message: 14/01/2014, 14h01
  2. Adapter une image au dimension d'une div
    Par Rpi78 dans le forum Mise en page CSS
    Réponses: 9
    Dernier message: 27/05/2013, 12h18
  3. Dimension d'une photo jpeg
    Par dracito dans le forum VB 6 et antérieur
    Réponses: 5
    Dernier message: 26/02/2005, 18h32
  4. [VB6] Dimension d'une fenetre extérieure
    Par Ingham dans le forum VB 6 et antérieur
    Réponses: 3
    Dernier message: 22/01/2003, 16h52
  5. [VB6] [Graphisme] Dimensions d'une image au saving
    Par jeanseb dans le forum VB 6 et antérieur
    Réponses: 2
    Dernier message: 14/12/2002, 19h09

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