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 :

Centrer barre de navigation comprenant 2 lignes


Sujet :

Centrer un élément en CSS

  1. #1
    Futur Membre du Club
    Inscrit en
    Novembre 2008
    Messages
    8
    Détails du profil
    Informations personnelles :
    Âge : 40

    Informations forums :
    Inscription : Novembre 2008
    Messages : 8
    Points : 6
    Points
    6
    Par défaut Centrer barre de navigation comprenant 2 lignes
    Bonjour !

    Je viens vers vous car je dois retoucher un petit site basique, et notamment ajouter qq pages.

    Je ne suis pas développeur, je peux copier coller du code etc car je le comprends un petit peu, mais sans plus et j'ai besoin d'aide.

    Comme je veux ajouter deux ou trois pages au site, la barre de navigation change forcément de taille. En fait, cela a pour effet de rajouter une ligne de liens en dessous de la première. Ca ne me pose pas de probleme, mais ce qui m'ennuie c'est que la ligne du dessus n'est pas centrée par rapport à la ligne du dessous. Du coup ça donne ça :

    Nom : nav.jpg
Affichages : 515
Taille : 13,2 Ko


    Je ne sais pas trop toucher le css, j'ai essayer qq trucs mais ça déplace toute la barre un peu n'importe où ^^

    Voila le
    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
    <nav>
    			<ul>
    				<a title="Accueil" href="#" >
    					<li><h2 class="oui">|Accueil|</h2></li>
    				</a>
    				<a title="rez-de-chaussée" href="rez-de-chaussee.html" >
    					<li class="long"><h2>|Rez-de-Chaussée|</h2></li>
    				</a>
    				<a title="1er appartement - 1er niveau" href="premier.html">
    					<li><h2>|1<sup>er</sup> appartement - 1<sup>er</sup> niveau|</h2></li>
    				</a>
    				<a title="1er appartement - 2ème niveau" href="deuxieme.html">
    					<li><h2>|1<sup>er</sup> appartement - 2<sup>ème</sup> niveau|</h2></li>
    				</a>
    				<a title="2ème appartement" href="guest.html">
    					<li><h2>|2<sup>ème</sup> appartement|</h2></li>
    				</a>
    				<a title="cave" href="cave.html">
    					<li><h2>|Cave|</h2></li>
    				</a>
    				<a title="informations" href="informations.html">
    					<li><h2>|Informations|</h2></li>
    				</a>
    			</ul>
    		</nav>


    Et le
    Code CSS : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    nav {
    	background:#fff;
            position: fixed;
            min-height: 60px;
    	width: 90%;
    	left: 5%;
    	top: 0;
    	border-bottom: 1px solid #3C3F40;
    	z-index: 50;
    }

    Y aurait-il une petite modif à apporter pour que les deux lignes soient centrées entre elles ?


    Merci beaucoup de votre aide !!

  2. #2
    Modérateur

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

    Informations forums :
    Inscription : Janvier 2011
    Messages : 16 959
    Points : 44 122
    Points
    44 122
    Par défaut
    Bonjour,
    il nous manque le CSS des éléments autres que nav !

    Structurellement parlant ton code HTML n'est pas correct, et il existe, Nu Html Checker par exemple, pour le tester.

    Il est inutile, à mon sens, de rajouter une liste <ul> dans un élément <nav> qui est sémantiquement parlant et suffisant si ton menu est à un seul niveau.

    De plus ajouter des éléments <h2> si c'est pour le côté « esthétique » de la chose, n'en n'est pas une bonne idée, il existe le CSS pour cela. Il en est de même pour les barres verticales.

    Peut être devrais-tu commencer par corriger cela avant de continuer.
    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    <nav>
        <a title="Accueil" href="#" class="oui">|Accueil|</a>
        <a title="rez-de-chaussée" href="rez-de-chaussee.html" class="long">|Rez-de-Chaussée|</a>
        <a title="1er appartement - 1er niveau" href="premier.html"> |1<sup>er</sup> appartement - 1<sup>er</sup> niveau| </a>
        <a title="1er appartement - 2ème niveau" href="deuxieme.html"> |1<sup>er</sup> appartement - 2<sup>ème</sup> niveau| </a>
        <a title="2ème appartement" href="guest.html"> |2<sup>ème</sup> appartement| </a>
        <a title="cave" href="cave.html"> |Cave| </a>
        <a title="informations" href="informations.html"> |Informations| </a>
    </nav>

    Peut être que cette page : Espace entre éléments « inline » pourrait t'aider.

  3. #3
    Invité
    Invité(e)
    Par défaut
    Bonjour,

    une solution (flex) : https://codepen.io/jreaux62/pen/XWryKQd
    Code HTML : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    <nav>
        <a title="Accueil" href="#" class="oui">Accueil</a>
        <a title="rez-de-chaussée" href="rez-de-chaussee.html" class="long">Rez-de-Chaussée</a>
        <a title="1er appartement - 1er niveau" href="premier.html">1<sup>er</sup> appartement - 1<sup>er</sup> niveau</a>
        <a title="1er appartement - 2ème niveau" href="deuxieme.html">1<sup>er</sup> appartement - 2<sup>ème</sup> niveau</a>
        <a title="2ème appartement" href="guest.html">2<sup>ème</sup> appartement</a>
        <a title="cave" href="cave.html">Cave</a>
        <a title="informations" href="informations.html">Informations</a>
    </nav>
    N.B. J'ai supprimé les "|" du HTML, pour les mettre dans le 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
    nav {
      position:fixed;
      display:flex;
      flex-wrap:wrap;
      justify-content:center;
      align-items:center;
      width:100%;
    }
    nav > a {
      display:inline-block;
      flex:0 0 auto;
      text-aligne:center;
      font-family:Arial;
      color:black;
      padding:5px 0;
      margin:0 2px;
      text-decoration:none;
      text-transform: uppercase;
      border:1px solid transparent;
    }
    /* ajout de | de chaque coté */
    nav > a:before, nav > a:after {
      display:inline;
      content:'|';
      margin:0 2px;
    }
    /* menu hover ou actif */
    nav > a:hover, nav > a.active {
      border-top:1px solid darkgreen;
      border-bottom:1px solid darkgreen;
      color:darkgreen;
    }
    Dernière modification par ProgElecT ; 19/09/2019 à 20h29.

  4. #4
    Futur Membre du Club
    Inscrit en
    Novembre 2008
    Messages
    8
    Détails du profil
    Informations personnelles :
    Âge : 40

    Informations forums :
    Inscription : Novembre 2008
    Messages : 8
    Points : 6
    Points
    6
    Par défaut @ jreaux62
    Ca ne fonctionne pas car le menu se colle tout à droite à moitié en dessous de l'image de fond. En effet il doit y avoir un autre code qui empeche le bon deroulement, je vais mettre le code entier.

  5. #5
    Futur Membre du Club
    Inscrit en
    Novembre 2008
    Messages
    8
    Détails du profil
    Informations personnelles :
    Âge : 40

    Informations forums :
    Inscription : Novembre 2008
    Messages : 8
    Points : 6
    Points
    6
    Par défaut Le css entier
    Il y a pas mal de CSS ! Merci beaucoup de votre aide en tout cas. Car pour ce qui est de changer fondamentalement le code ça va être vraiment compliqué


    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
    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
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    714
    715
    716
    717
    718
    719
    720
    721
    722
    723
    724
    725
    726
    727
    728
    729
    730
    731
    732
    733
    734
    735
    736
    737
    738
    739
    740
    741
    742
    743
    744
    745
    746
    747
    748
    749
    750
    751
    752
    753
    754
    755
    756
    757
    758
    759
    760
    761
    762
    763
    764
    765
    766
    767
    768
    769
    770
    771
    772
    773
    774
    775
    776
    777
    778
    779
    780
    781
    782
    783
    784
    785
    786
    787
    788
    789
    790
    791
    792
    793
    794
    795
    796
    797
    798
    799
    800
    801
    802
    803
    804
    805
    806
    807
    808
    809
    810
    811
    812
    813
    814
    815
    816
    817
    818
    819
    820
    821
    822
    823
    824
    825
    826
    827
    828
    829
    830
    831
    832
    833
    834
    835
    836
    837
    838
    839
    840
    841
    842
    843
    844
    845
    846
    847
    848
    849
    850
    851
    852
    853
    854
    855
    856
    857
    858
    859
    860
    861
    862
    863
    864
    865
    866
    867
    868
    869
    870
    871
    * {
    	margin:0;
    	padding:0;
    	text-decoration:none;
    	list-style:none;
    }
     
    html,
    body {
    	/*background: #ededed;*/
    	font-family: sans-serif;
        font-size: 14px;
        min-width: 900px;
    	-webkit-font-smoothing: antialiased;
    }
    /*
    gris : #3c3f40
    bleu f : #389ba6
    bleu c : #6cccd9
    orange : #d9a13b
    beige : #f2f2f2
     
    /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ TouT */
     
     
    h1,
    h2,
    h3,
    h4{  }
     
    h1 { font-family: 'Raleway', sans-serif; text-transform: uppercase; font-size: 50px;	letter-spacing: 2px; font-weight: 600; color: #fff; }
    h2 { font-family: 'Raleway', sans-serif; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; font-weight: 600; color: #000; line-height: 24px;}
     
    h3 { font-family: 'Playfair Display', serif; text-transform: uppercase; font-size: 24px; letter-spacing: 1px; font-weight: 400; color: #D9A13B; }
     
    h4 { font-family: 'Raleway', sans-serif; font-size: 24px; font-weight: 400; color: #3C3F40; letter-spacing: 1px; text-align: center; }
     
    h5 { font-family: 'Raleway', sans-serif; font-size: 30px; font-weight: 400; color: #389BA6; letter-spacing: 1px; text-align: center; }
     
    /* p { font-family: 'Playfair Display', serif; } */
    p { font-family: 'Raleway', sans-serif; letter-spacing: 1px; }
     
    a, a:visited {
    }
     
    /* --------------------------------------------------------------------- GLOBALE */	
     
    .separation { width: 100%; margin: 30px 0; border-bottom: 1px solid #f2f2f2; clear: both; }
     
    /* --------------------------------------------------------------------- MENU */
     
    nav {
    	background:#fff;
        position: fixed;
        min-height: 60px;
    	width: 90%;
    	left: 5%;
    	top: 0;
    	border-bottom: 1px solid #3C3F40;
    	z-index: 50;
     
    	 /*-webkit-box-shadow: 0 0 5px #000;
    		-moz-box-shadow: 0 0 5px #000;
    		 -ms-box-shadow: 0 0 5px #000;
    		  -o-box-shadow: 0 0 5px #000;
    			 box-shadow: 0 0 5px #000;
     
    	-webkit-transition: all 100ms linear;
    	   -moz-transition: all 100ms linear;
    		-ms-transition: all 100ms linear;
    		 -o-transition: all 100ms linear;
    			transition: all 100ms linear;*/
     
    }
     
     
    .haut{
        width: 900px;
    	left: 50%;
    	margin: 0 0 0 -480px;
    }
    .bas {
        width: 100%;
    }
     
    	nav div{
    		background: url(../sources/haut-porte.jpg);
    		width: 130px;
    		height: 100px;
    		margin: 10px 0 0 10px;
    		border-left: 1px solid #6CCED9;
    		box-shadow: -1px -1px 1px rgba(255, 255, 255, 0.1), 1px 1px 1px rgba(0, 0, 0, 0.5);
    	}
     
    	nav ul {
    		position: relative;
    		width: 700px;
    		left: 50%;
    		margin: 0 0 0 -350px;
    	}
     
    	nav ul a li {
    		height: 60px;
    		margin: 0px;
    		padding: 0px 15px;
    		float: left;
    		/* box-shadow: -1px -1px 1px rgba(255, 255, 255, 0.1), 1px 1px 1px rgba(0, 0, 0, 0.5); */
     
    		-webkit-transition: all 200ms ease-in;
    		   -moz-transition: all 200ms ease-in;
    			-ms-transition: all 200ms ease-in;
    			 -o-transition: all 200ms ease-in;
    				transition: all 200ms ease-in;
    	}
    		nav ul a li h2 {
    			border-bottom: 1px solid #fff;
    			border-top: 1px solid #fff;
    			margin: 14px 0;
     
    		-webkit-transition: all 200ms ease-in;
    		   -moz-transition: all 200ms ease-in;
    			-ms-transition: all 200ms ease-in;
    			 -o-transition: all 200ms ease-in;
    				transition: all 200ms ease-in;
    		}
    		nav ul a:hover li h2 {
    			border-bottom: 1px solid #6CCED9;
    			border-top: 1px solid #6CCED9;
    		}
    		.oui {
    			border-bottom: 1px solid #389BA6 !important;
    			border-top: 1px solid #389BA6 !important;
    		}
     
    		/*nav ul a:hover h2.un { margin: 0 5px 10px 0; }
    		nav ul a:hover h2.deux { margin: 10px 5px 10px 0; }
    		nav ul a:hover h2.trois { margin: 10px 5px 0 0; }*/
     
     
    /* --------------------------------------------------------------------- Accueil */				
     
     
    header#index{
    	position: relative;
    	background:url(../sources/face.jpg) no-repeat top center fixed;
    	width: 90%;
    	left: 5%;
    }
    	header#index div#titre {
    		position: absolute;
    		width: 100%;
    		height: auto;
    		top: 50%;
    		margin: -100px 0 0 0; 
    	}
     
    		header#index div#titre  h1{
    			text-align: center;
    			text-shadow: -1px -1px 1px rgba(255, 255, 255, 0.1), 1px 1px 1px rgba(0, 0, 0, 0.5);
    		}
    		header#index div#titre  div#deco {
    			background: #D9A13B;
    			position: relative;
    			width: 250px;
    			height: 7px;
    			margin: 10px auto;
    			box-shadow: -1px -1px 1px rgba(255, 255, 255, 0.1), 1px 1px 1px rgba(0, 0, 0, 0.5);
     
    		}
     
    	header#index a div#fleche {
    		background: url(../sources/fleche.png);
    		width: 65px;
    		height: 38px;
    		position: absolute;
    		bottom: 20px;
    		left: 50%;
    		margin: 0 0 0 -32px;
    	}
     
    /* --------------------------------------------------------------------- INDEX */
     
    section#suite {
    	background: #fff;
    	position: relative;
    	width: 90%;
    	height: auto;
    	margin: 0 auto;
    }
    	section#suite div#bande {
    		/* background: #000; */
    		width: 100%;
    		/* left: 5%; */
    		height: 49px;
    		padding-top: 13px;
    		border-bottom: 1px solid #3C3F40;
    		border-top: 1px solid #3C3F40;
    	}
    	.barre {
    		background: none repeat scroll 0 0 #D9A13B;
    		bottom: 6px;
    		height: 1px;
    		position: absolute;
    		width: 30px;
    	}
    		section#suite div#bande  h3 {
    			color: #000;
    			position: relative;
    			text-align: center;
    		}
    		section#suite div#bande  h3::before {
    			content:" ";
    			background: none repeat scroll 0 0 #389BA6;
    			position: absolute;
    			width: 50px;
    			height: 1px;
    			top: 18px;
    			margin-left: -70px;
    		}
    		section#suite div#bande  h3::after {
    			content:" ";
    			background: none repeat scroll 0 0 #389BA6;
    			position: absolute;
    			width: 50px;
    			height: 1px;
    			top: 18px;
    			margin-left: 20px;
    		}
     
    	section#suite div#rond {
    		background: url(../sources/haut-de.jpg) 0 -10px;
    		width: 250px;
    		height: 115px;
    		margin: 0 auto;
    	}
     
    	section#suite div#description_index {
    		height: auto;
    		margin: 0 auto;
    		padding: 20px 0;
    	}
    		section#suite div#description_index ul {
    			margin: 40px 0 0 0;
    			width: 100%;
    		}
    			section#suite div#description_index ul li {
    				float: left;
    				width: 22%;
    				height: auto;
    				margin: 5px 2% 50px 0;
    				padding: 0 0 10px 0;
     
    				box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.12);
    			 -o-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.12);
    			-ms-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.12);
    		   -moz-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.12);
    		-webkit-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.12);
    			}
    			section#suite div#description_index ul li:nth-child(1) {
    				margin-left: 3%!important;
     
    			}
    			section#suite div#description_index ul li:nth-child(4) {
    				margin-right: 3%!important;
    			}
     
     
    				section#suite div#description_index ul img:nth-child(1) {
    					border-bottom: 5px solid #f2f2f2;
    					width: 100%;
    					height: auto;
     
    				}
    				section#suite div#description_index ul img:nth-child(2) {
    					position: relative;
    					left: 50%;
    					margin: 5px 0 5px -100px;
    				}
     
     
    			section#suite div#description_index p {
    				margin: 60px 0 0 0;
    				font-size: 16px;	
    				text-align: center;
    			}
     
    	.haut_page { margin: 0!important; }
    	.bleu {
    		position: relative;
    		color: rgba(56,155,166,0.7);
    		text-align: center;
    		text-transform: none;
    		letter-spacing: 0;
    		font-size: 72px;
    		margin-top: -140px;
    	} 
    	/* .bleu { color: rgba(108,208,217,0.7); text-align: center; font-size: 72px; } */
    	.sous { position: relative; margin-top: -41px !important; }
    	.bordure { border-top: 1px solid #f2f2f2; margin-top: 65px !important; padding: 10px 0 0; }
     
    /* --------------------------------------------------------------------- éTAGES slide */
     
    header#etage {
    	width: 90%;
    	height: 380px;
    	margin: 60px auto auto;
    	overflow: hidden;
    	/* border-bottom: 5px solid #000; */
    }
    	header#etage div#titre {
    		position: relative;
    		width: 100%;
    		height: auto;
    		top: 50%;
    		margin: -10px 0 0 0; 
    	}
    		header#etage div#titre  h1{
    			text-align: center;
    			text-shadow: -1px -1px 1px rgba(255, 255, 255, 0.1), 1px 1px 1px rgba(0, 0, 0, 0.5);
    		}
     
    /* ------------------------------- slide */
     
    	#slide {
    		position:relative;
    		height:380px;
    	}
     
    	#slide li.active {
    		z-index:10;
    		opacity:1.0;
    	}
     
    	#slide li.last-active {
    		z-index:9;
    	}
     
    	ul#slide li { position:absolute; top: 0; left: 0; width: 100%; height: 380px; z-index:8; opacity:0.0; }
     
     
    /* ------------------------------- Rez de chaussée */	
     
    	li#rez_exterieur { background: url(../photo_slide/rez_exterieur.jpg) no-repeat center; }
    	li#rez_hall { background: url(../photo_slide/rez_hall.jpg) no-repeat center; }
    	li#rez_colonne { background: url(../photo_slide/rez_colonne.jpg) no-repeat center; }
    	li#rez_rampe { background: url(../photo_slide/rez_rampe.jpg) no-repeat center; }
     
    /* ------------------------------- premier */	
     
    	li#premier_musique { background: url(../photo_slide/premier_musique.jpg) no-repeat center; }
    	li#premier_sejour { background: url(../photo_slide/premier_sejour.jpg) no-repeat center; }
    	li#premier_veranda { background: url(../photo_slide/premier_veranda.jpg) no-repeat center; }
    	li#premier_fresque { background: url(../photo_slide/premier_fresque.jpg) no-repeat center; }
     
    /* ------------------------------- deuxieme */	
     
    	li#deuxieme_chambre { background: url(../photo_slide/deuxieme_chambre.jpg) no-repeat center; }
    	li#deuxieme_terrasse { background: url(../photo_slide/deuxieme_terrasse.jpg) no-repeat center; }
    	li#deuxieme_escalier { background: url(../photo_slide/deuxieme_escalier.jpg) no-repeat center; }
    	li#deuxieme_sejour { background: url(../photo_slide/deuxieme_sejour.jpg) no-repeat center; }
     
    /* ------------------------------- cave */	
     
    	li#cave_01 { background: url(../photo_slide/cave_01.jpg) no-repeat center; }
    	li#cave_02 { background: url(../photo_slide/cave_02.jpg) no-repeat center; }
    	li#cave_03 { background: url(../photo_slide/cave_03.jpg) no-repeat center; }
    	li#cave_04 { background: url(../photo_slide/cave_04.jpg) no-repeat center; }
     
    /* --------------------------------------------------------------------- éTAGES plan */
     
    	section#suite div.plan {
    		width: 810px;
    		margin: 50px auto 0 auto;
    	}	
    		section#suite div.plan div#echelle {
    			background: url(../sources/echelle.jpg) no-repeat center;
    			width: 70px;
    			height: 155px;
    			float: left;
    		}
    			section#suite div.plan div#echelle h4 { font-family: 'Playfair Display', serif color: #3C3F40; width: 100%; text-align: center; }
    			section#suite div.plan div#echelle h4#metre { margin: 30px 0 0 0; }
    			section#suite div.plan div#echelle h4#n { margin: 70px 0 0 0; }
     
     
    			.photo { background: url(../sources/angles.png) no-repeat -50px -50px; width: 50px; height: 50px; position: absolute; }
     
    			.piece { position: absolute; }
    			.piece h4 { cursor: default; }
    			.piece p { color: #555; text-align: center; font-size: 18px;}
    			.piece:hover h4 { color: #389BA6; }
     
    			.angle_hg:hover { background-position: 0 0 !important; }
    			.angle_hm:hover { background-position: -50px 0 !important; }
    			.angle_hd:hover { background-position: -100px 0 !important; }
    			.angle_mg:hover { background-position: 0 -50px !important; }
    			.angle_md:hover { background-position: -100px -50px !important; }
    			.angle_bg:hover { background-position: 0 -100px !important; }
    			.angle_bm:hover { background-position: -50px -100px !important; }
    			.angle_bd:hover { background-position: -100px -100px !important; }
     
     
    /* ------------------------------- Rez de chaussée */
     
    		section#suite div#plan_rez {
    			height: 775px;
    		}
     
    		section#suite div#plan_rez div#rez {
    			background: url(../sources/rez.jpg) no-repeat center;
    			width: 740px;
    			height: 715px;
    			margin: 0 0 0 70px;
    		}
     
    			.vue_rez_01 { margin: 735px 0 0 95px; }
    			.vue_rez_02 { margin: 630px 0 0 22px; }
    			.vue_rez_03 { margin: 630px 0 0 163px; }
    			.vue_rez_04 { margin: 430px 0 0 95px; }
    			.vue_rez_05 { margin: 375px 0 0 165px; }
    			.vue_rez_06 { margin: 265px 0 0 165px; }
     
    			.rez_un { width: 195px; height: 225px; margin: 456px 0 0 19px; }
    			.rez_un h4 { margin-top: 110px; }
    			.rez_deux { width: 195px; height: 160px; margin: 265px 0 0 19px; }
    			.rez_deux h4 { margin-top: 55px; }
     
    /* ------------------------------- Premier */
     
    		section#suite div#plan_premier {
    			height: 880px;
    		}
     
    		section#suite div#plan_premier div#premier {
    			background: url(../sources/premier.jpg) no-repeat center;
    			width: 740px;
    			height: 870px;
    			margin: 0 0 0 70px;
    		}
     
    			.vue_premier_01 { margin: 765px 0 0 162px; }
    			.vue_premier_02 { margin: 575px 0 0 162px; }
    			.vue_premier_03 { margin: 521px 0 0 21px; }
    			.vue_premier_04 { margin: 391px 0 0 21px; }
    			.vue_premier_05 { margin: 530px 0 0 342px; }
    			.vue_premier_06 { margin: 765px 0 0 455px; }
    			.vue_premier_07 { margin: 765px 0 0 229px; }
    			.vue_premier_08 { margin: 610px 0 0 670px; }
    			.vue_premier_09 { margin: 765px 0 0 670px; }
    			.vue_premier_10 { margin: 162px 0 0px 162px; }
    			.vue_premier_11 { margin: 162px 0 0 342px; }
    			.vue_premier_12 { margin: 485px 0 0px 230px; }
    			.vue_premier_13 { margin: 485px 0 0px 342px; }
    			.vue_premier_14 { margin: 485px 0 0px 452px; }
    			.vue_premier_15 { margin: 328px 0 0px 670px; }
    			.vue_premier_16 { margin: 162px 0 0px 670px; }
    			.vue_premier_17 { margin: 55px 0 0px 175px; }
    			.vue_premier_18 { margin: 55px 0 0px 670px; }
     
    			/* background: rgba(150, 24, 55, 0.2);  */
     
    			.premier_un { width: 198px; height: 236px; margin: 575px 0 0 19px; } /* petit salon g */
    			.premier_un h4 { margin-top: 85px; }
    			.premier_deux { width: 198px; height: 172px; margin: 395px 0 0 19px; } /* escalier */
    			.premier_deux h4 { margin-top: 57px; }
    			.premier_trois { width: 282px; height: 275px; margin: 536px 0 0 226px; } /* salon music */
    			.premier_trois h4 { margin-top: 110px; }
    			.premier_quatre { width: 206px; height: 200px; margin:612px 0 0 517px; } /* petit salon d */
    			.premier_quatre h4 { margin-top: 75px; }
    			.premier_cinq { width: 197px; height: 163px; margin: 162px 0 0 20px; }  /* cuisine */
    			.premier_cinq h4 { margin-top: 58px; }
    			.premier_six { width: 130px; height: 50px; margin: 336px 0 0 20px; } /* buanderie */
    			.premier_six h4 { margin-top: 9px; }
    			.premier_sept { width: 283px; height: 373px; margin: 162px 0 0 226px; } /* sejour */
    			.premier_sept h4 { margin-top: 160px; }
    			.premier_huit { width: 205px; height: 212px; margin: 164px 0 0 518px; } /* chambre */
    			.premier_huit h4 { margin-top: 80px; }
    			.premier_neuf { width: 147px; height: 70px; margin: 384px 0 0 576px; } /* dessing */
    			.premier_neuf h4 { margin-top: 20px; }
    			.premier_dix { width: 104px; height: 142px; margin: 460px 0 0 620px; } /* sale de bain */
    			.premier_dix h4 { margin-top: 27px; }
    			.premier_onze { width: 96px; height: 75px; margin: 528px 0 0 516px; } /* w.c. */
    			.premier_onze h4 { margin-top: 23px; }
    			.premier_douze { width: 546px; height: 120px; margin: 19px 0 0 175px; } /* véranda */
    			.premier_douze h4 { margin-top: 37px; }
     
    /* ------------------------------- Deuxieme */
     
    		section#suite div#plan_deuxieme {
    			height: 715px;
    		}
     
    		section#suite div#plan_deuxieme div#deuxieme {
    			background: url(../sources/deuxieme.jpg) no-repeat center;
    			width: 740px;
    			height: 715px;
    			margin: 0 0 0 70px;
    		}
     
    			.vue_deuxieme_01 { margin: 632px 0 0 452px; }
    			.vue_deuxieme_02 { margin: 632px 0 0 21px; }
    			.vue_deuxieme_03 { margin: 421px 0 0 240px; }
    			.vue_deuxieme_04 { margin: 208px 0 0 161px; }
    			.vue_deuxieme_05 { margin: 30px 0 0 21px; }
    			.vue_deuxieme_06 { margin: 95px 0 0 470px; }
    			.vue_deuxieme_07 { margin: 30px 0 0 230px; }
    			.vue_deuxieme_08 { margin: 30px 0 0 670px; }
    			.vue_deuxieme_09 { margin: 30px 0 0 575px; }
    			.vue_deuxieme_10 { margin: 192px 0 0 542px; }
    			.vue_deuxieme_11 { margin: 371px 0 0 574px; }
    			.vue_deuxieme_12 { margin: 585px 0 0 517px; }
    			.vue_deuxieme_13 { margin: 425px 0 0 670px; }
     
    			/* background: rgba(150, 24, 55, 0.2);  */
     
    			.deuxieme_un { width: 486px; height: 236px; margin: 445px 0 0 19px; } /* Terrasse */
    			.deuxieme_un h4 { margin-top: 100px; }
    			.deuxieme_deux { width: 196px; height: 172px; margin: 263px 0 0 19px; } /* escalier */
    			.deuxieme_deux h4 { margin-top: 57px; }
    			.deuxieme_trois { width: 196px; height: 222px; margin: 32px 0 0 19px; } /* Chambre */
    			.deuxieme_trois h4 { margin-top: 85px; }
    			.deuxieme_quatre { width: 280px; height: 222px; margin: 32px 0 0 225px; } /* sejour */
    			.deuxieme_quatre h4 { margin-top: 75px; }
    			.deuxieme_cinq { width: 149px; height: 144px; margin: 32px 0 0 572px; }  /* salle de bain_01 */
    			.deuxieme_cinq h4 { margin-top: 32px; }
    			.deuxieme_six { width: 150px; height: 84px; margin: 186px 0 0 572px; } /* cuisine */
    			.deuxieme_six h4 { margin-top: 15px; }
    			.deuxieme_sept { width: 150px; height: 142px; margin: 276px 0 0 572px; } /* salle de bain_02 */
    			.deuxieme_sept h4 { margin-top: 30px; }
    			.deuxieme_huit { width: 208px; height: 252px; margin: 428px 0 0 515px; } /* chambre */
    			.deuxieme_huit h4 { margin-top: 100px; }
     
    /* ------------------------------- cave */
     
    		section#suite div#plan_cave {
    			height: 725px;
    		}
     
    		section#suite div#plan_cave div#cave {
    			background: url(../sources/cave.jpg) no-repeat center;
    			width: 740px;
    			height: 715px;
    			margin: 0 0 0 70px;
    		}
     
    			.vue_cave_01 { margin: 262px 0 0 58px; }
    			.vue_cave_02 { margin: 268px 0 0 232px; }
    			.vue_cave_03 { margin: 260px 0 0 520px; }
    			.vue_cave_04 { margin: 90px 0 0 520px; }
    			.vue_cave_05 { margin: 182px 0 0 395px; }
    			.vue_cave_06 { margin: 195px 0 0 155px; }
    			.vue_cave_07 { margin: 90px 0 0 112px; }
     
    			.cave { width: 522px; height: 230px; margin: 92px 0 0 57px; }
    			.cave h4 { margin-top: 80px; }
     
     
     
    /* --------------------------------------------------------------------- éTAGES description */
     
    	section#suite div#description {
    		margin: 20px 0;
    	}			
    		.detail_partie {
    			/* padding: 35px 25px 45px 25px; */
    		}			
    		.detail_partie_fin {
    			margin: 0 0 30px 0;
    		}				
    			.detail_partie_fin h5 {
    				margin: 10px 0;
    			}			
    			.detail_partie_fin p {
    				margin: 5px 0 !important;
    			}
     
    		section#suite div#description h5 {
    			clear: both;
    		}
    		section#suite div#description h5.marge {
    			margin: 40px 0 15px 0;
    		}
    		section#suite div#description p {
    			font-size: 15px;
    			letter-spacing: 1px;
    			text-align: center;
    		}
     
    		section#suite div#description span {
    			border-bottom: 1px solid #d9a13b;
    		}
     
    		section#suite div#description a {
    			border-bottom: 1px dashed #000;
    		}
     
    		section#suite div#description div#derniere {
    			background: #eff0f1;
    		}
     
    		.gauche { float: left; margin-left: 3% !important; }
    		.milieu { float: left; margin-left: 2% !important; }	
    		.droite { float: right;margin-right: 3% !important; }	
     
    		.detail_bloc {
    			margin: 20px 0 40px 0;
    			width: 46%;
    			height: auto;
    			box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.12);
    			-o-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.12);
    			-ms-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.12);
    			-moz-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.12);
    			-webkit-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.12);
    		}
    		.sous_detail {
    			/* background: #f2f2f2; */
    			height: auto;
    			padding: 15px 10px;
    		}
     
    		.detail_blocs {
    			margin: 20px 0 40px 0;
    			width: 30%;
    			height: auto;
    			box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.12);
    			-o-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.12);
    			-ms-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.12);
    			-moz-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.12);
    			-webkit-box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.12);
    		}
     
    		.photo_detail { width: 100%; height: 300px; border-bottom: 5px solid #f2f2f2; }
    		.photo_fixe { width: 100%; height: 600px; border-bottom: 5px solid #f2f2f2; }
     
    		.photo_img { width: 100%; height: auto; border-bottom: 5px solid #f2f2f2; }
     
    		#detail_exterieur_pierre { background: url(../photo_detail/exterieur_pierre.jpg) no-repeat center; } /* rez */
    		#detail_exterieur_bois { background: url(../photo_detail/exterieur_bois.jpg) no-repeat center; }
    		#detail_rez_pierre { background: url(../photo_detail/rez_pierre.jpg) no-repeat center; }
    		#detail_rez_colonne { background: url(../photo_detail/rez_colonne.jpg) no-repeat center; }
    		#detail_rez_noyer { background: url(../photo_detail/rez_noyer.jpg) no-repeat center; }
     
     
    		#detail_premier_marbre { background: url(../photo_detail/premier_marbre.jpg) no-repeat center; } /* premier */
    		#detail_premier_cheminee_01 { background: url(../photo_detail/premier_cheminee_01.jpg) no-repeat center; } 
    		#detail_premier_escalier { background: url(../photo_detail/premier_escalier.jpg) no-repeat center; } 
    		#detail_premier_motifs { background: url(../photo_detail/premier_motifs.jpg) no-repeat center; } 
    		#detail_premier_portes { background: url(../photo_detail/premier_portes.jpg) no-repeat center; } 
    		#detail_premier_fresque { background: url(../photo_detail/premier_fresque.jpg) no-repeat center; } 
    		#detail_premier_cheminee_02 { background: url(../photo_detail/premier_cheminee_02.jpg) no-repeat center; } 
    		#detail_premier_cheminee_03 { background: url(../photo_detail/premier_cheminee_03.jpg) no-repeat center; } 
     
    	.plafond { margin: 15px 0 30px; }
    	.clear { clear: both; }
     
    /* --------------------------------------------------------------------- INFORMATIONS */
     
     
    section#situation {
    	background: #fff;
    	position: relative;
    	width: 90%;
    	height: auto;
    	margin: 60px auto 0;
    }
     
    section#situation div#carte {
    	width: 100%;
    	height: 450px;
    	margin: 30px auto 0;
    }
     
    	section#situation div#bande {
    		/* background: #000; */
    		width: 100%;
    		/* left: 5%; */
    		height: 49px;
    		padding-top: 13px;
    		border-bottom: 1px solid #3C3F40;
    		border-top: 1px solid #3C3F40;
    	}
    		section#situation div#bande  h3 {
    			color: #000;
    			position: relative;
    			text-align: center;
    		}
    		section#situation div#bande  h3::before {
    			content:" ";
    			background: none repeat scroll 0 0 #389BA6;
    			position: absolute;
    			width: 50px;
    			height: 1px;
    			top: 18px;
    			margin-left: -70px;
    		}
    		section#situation div#bande  h3::after {
    			content:" ";
    			background: none repeat scroll 0 0 #389BA6;
    			position: absolute;
    			width: 50px;
    			height: 1px;
    			top: 18px;
    			margin-left: 20px;
    		}
     
    		section#situation h5 {
    			margin-bottom: 15px;
    		}
     
    		section#situation p {
    			font-size: 16px;
    			line-height: 22px;
    		}
     
    		section#situation p span {
    			border-bottom: 1px solid #d9a13b;
    		}
    		.centrer { text-align: center; }
    		.decalage { margin-left: 30px; }
     
    		.detail_info { margin: 20px 0 20px 0; width: 46%; height: auto;	}
     
     
    		.detail_info a { color: #d9a13b; border-bottom: 1px solid #d9a13b; }
     
    /* --------------------------------------------------------------------- FOOTER */
     
    footer {
    	background:#000;
        position: relative;
    	width: 90%;
    	left: 5%;
    	padding: 50px 0 40px;
    	/* border-top: 1px solid #777;
    	border-bottom: 1px solid #777; */
    	clear: both;
    }
     
    	footer p {
    		font-family: 'Raleway', sans-serif;
    		color: #3C3F40;
    		text-align: center;
    		margin-bottom: 10px;
    	}
     
    	footer p a {
    		color: #3C3F40;
    		border-bottom: 1px solid #3C3F40;
    	}
    /* --------------------------------------------------------------------- Lightbox */
     
    body:after {
      content: url(../sources/close.png) url(../sources/loading.gif) url(../sources/prev.png) url(../sources/next.png);
      display: none;
    }
     
    #lightboxOverlay {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 9999;
      background-color: black;
      filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=85);
      opacity: 0.85;
      display: none;
    }
     
    #lightbox {
      position: absolute;
      left: 0;
      width: 100%;
      z-index: 10000;
      text-align: center;
      line-height: 0;
      font-family: "lucida grande", tahoma, verdana, arial, sans-serif;
      font-weight: normal;
    }
     
    #lightbox img {
      width: 100%;
      height: 100%;
    }
     
    #lightbox a img {
      border: none;
    }
     
    .lb-outerContainer {
      position: relative;
      background-color: white;
      *zoom: 1;
      width: 250px;
      height: 250px;
      margin: 0 auto;
    }
     
    .lb-outerContainer:after {
      content: "";
      display: table;
      clear: both;
    }
     
    .lb-container {
      padding: 10px;
    }
     
    .lb-loader {
      position: absolute;
      top: 40%;
      left: 0%;
      height: 25%;
      width: 100%;
      text-align: center;
      line-height: 0;
    }
     
    .lb-cancel {
      display: block;
      width: 32px;
      height: 32px;
      margin: 0 auto;
      background: url(../sources/loading.gif) no-repeat;
    }
     
    .lb-nav {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      z-index: 10;
    }
     
    .lb-container > .nav {
      left: 0;
    }
     
    .lb-nav a {
      outline: none;
    }
     
    .lb-prev, .lb-next {
      width: 49%;
      height: 100%;
      cursor: pointer;
      display: block;
    }
    .lb-prev {
      left: 0;
      float: left;
    }
    .lb-prev:hover {
      background: url(../sources/prev.png) left 48% no-repeat;
    }
    .lb-next {
      right: 0;
      float: right;
    }
    .lb-next:hover {
      background: url(../sources/next.png) right 48% no-repeat;
    }
     
    .lb-dataContainer {
    	display: none;
    }
    .lb-dataContainer:after {
    	display: none;
    }
    .lb-data {
    	display: none;
    }

  6. #6
    Invité
    Invité(e)
    Par défaut
    1- Ta structure HTML est fausse.
    On ne peut pas mettre de <a> entre <ul> et <li>.

    2- Sinon :
    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
    nav ul {
      position: relative;
      width: 700px;
      text-align:center;/* A AJOUTER */
      margin: 0 auto;/* A AJOUTER */
      /*left: 50%;*//* A SUPPRIMER*/
      /*margin: 0 0 0 -350px;*//* A SUPPRIMER*/
    }
     
    nav ul a li {
      /*height: 60px;*//* A SUPPRIMER*/
      /*margin: 0;*//* A SUPPRIMER*/
      padding: 0px 15px;
      /*float: left;*//* A SUPPRIMER*/
      display:inline-block;/* A AJOUTER */
     
      -webkit-transition: all 200ms ease-in;
      -moz-transition: all 200ms ease-in;
      -ms-transition: all 200ms ease-in;
      -o-transition: all 200ms ease-in;
      transition: all 200ms ease-in;
    }
    Dernière modification par Invité ; 19/09/2019 à 21h54.

  7. #7
    Futur Membre du Club
    Inscrit en
    Novembre 2008
    Messages
    8
    Détails du profil
    Informations personnelles :
    Âge : 40

    Informations forums :
    Inscription : Novembre 2008
    Messages : 8
    Points : 6
    Points
    6
    Par défaut @jreaux62
    Alors j'ai mis les <a> entre les <li> à la place, et j'ai changé le css pour celui que tu m'as donné. Cela donne ceci :

    Nom : nav2.jpg
Affichages : 501
Taille : 16,2 Ko


    Ce qui, ma foi, est déjà plus joli qu'au début

    C'est <a> qui font des retours à la ligne non ?

    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
    <nav>
         <ul>
     
    <li><a title="Accueil" href="#" ><h2 class="oui">|Accueil|</h2></a></li>
     
    <li class="long"><a title="rez-de-chaussée" href="rez-de-chaussee.html" ><h2>|Rez-de-Chaussée|</h2></a></li>
     
    <li><a title="1er appartement - 1er niveau" href="premier.html"><h2>|1<sup>er</sup> appartement - 1<sup>er</sup> niveau|</h2></a></li>
     
    <li><a title="1er appartement - 2ème niveau" href="deuxieme.html"><h2>|1<sup>er</sup> appartement - 2<sup>ème</sup> niveau|</h2></a></li>
     
    <li><a title="2ème appartement" href="guest.html"><h2>|2<sup>ème</sup> appartement|</h2></a></li>
     
    <li><a title="cave" href="cave.html"><h2>|Cave|</h2></a></li>
     
    <li><a title="informations" href="informations.html"><h2>|Informations|</h2></a></li>
     
         </ul>
    		</nav>

  8. #8
    Invité
    Invité(e)
    Par défaut
    Alors il faut remplacer
    Code css : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    nav ul a li {
    ...
    nav ul a li h2 {
    ...
    nav ul a:hover li h2 {
    par
    Code css : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    nav ul li {
    ...
    nav ul li h2 {
    ...
    nav ul li a:hover h2 {

  9. #9
    Futur Membre du Club
    Inscrit en
    Novembre 2008
    Messages
    8
    Détails du profil
    Informations personnelles :
    Âge : 40

    Informations forums :
    Inscription : Novembre 2008
    Messages : 8
    Points : 6
    Points
    6
    Par défaut
    @jreaux62
    C'est fait, la barre de navigation disparait complètement (peut-être derrière l'image de fond ?).

    C'est ok !
    J'ai enlevé le width qui était dans le nav ul, et le menu s'est mis sur une seule ligne. J'ai retouché la valeur left de nav ul aussi pour centrer mieux.

    J'imagine que c'est bricolage mais bon ça ira bien, c'est un site qui est sensé être éphémère toutes façons.

    Merci beaucoup de votre aide !

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

Discussions similaires

  1. Probleme ascensseur / barre de navigation dans une page
    Par bixi dans le forum Balisage (X)HTML et validation W3C
    Réponses: 6
    Dernier message: 12/12/2005, 14h56
  2. pagination : barre de navigation
    Par jexl dans le forum Langage
    Réponses: 6
    Dernier message: 05/12/2005, 09h22
  3. créer une barre de navigation déroulante aide
    Par max45 dans le forum Balisage (X)HTML et validation W3C
    Réponses: 2
    Dernier message: 28/11/2005, 20h57
  4. [FLASH MX2004] Barre de navigation
    Par Angeldu74 dans le forum Flash
    Réponses: 2
    Dernier message: 24/06/2005, 09h37
  5. [JSP][Barre de navigation] Gestion du bouton precedent
    Par lando dans le forum Servlets/JSP
    Réponses: 11
    Dernier message: 09/09/2003, 16h18

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