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 :

Affichage de menu css


Sujet :

CSS

  1. #1
    Nouveau membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2012
    Messages
    27
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haut Rhin (Alsace)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mai 2012
    Messages : 27
    Points : 38
    Points
    38
    Par défaut Affichage de menu css
    Alors voila je bloque sur un problème assez embêtant.

    J'ai créé un menu en css du type déroulant mais lors du "dézoomage" je trouve un léger problème ( voir les deux photos ci joint ).

    Voici le code HTML du menu :

    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
     
    <div id="menu">
                    <ul >
                       <li>
                        		<a href="Index.html">Accueil</a></li> 
                       <li>
                        		<a href="Services.html">Services</a></li> 
                        <li>
                        		Galeries
                            <ul>
                            		<li><a href="Galerie.html">Cuisines</a></li>
                        			<li><a href="Galerie/Placards.html">Placards</a></li>
                        			<li><a href="Galerie/Dressings.html">Dressings</a></li>
                                	<li><a href="Galerie/Parquets.html">Parquets</a></li>
                                	<li><a href="Galerie/SalleDeBains.html">Salles de Bain</a></li>
                                    <li><a href="Galerie/Mobiliers.html">Mobiliers</a></li> 
                          	</ul></li>
                      	 <li><a href="Contact.html">Contact</a></li>
                    </ul>
    </div>

    Et le code css :
    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
    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
    @charset "utf-8";
    /* CSS Document */
     
     
    body
    {
    	background-image:url(images/fondDuSite5.jpg);
    	background-repeat:repeat;
    	background-attachment:fixed;
    	background-size:cover;
    	color:white;
    	text-align:center;
    	width:100%;
    	height:100%;
    }
     
    footer
    {
    	background-color:#333;
    	position:relative;
    	width:1050px;
    	height:68px;
    	color:white;
    	margin-left:auto;
    	margin-right:auto;
    	    border-radius: 5px 5px 5px 5px;
        position: relative;
        box-shadow: 0px 4px 4px rgb(28, 26, 25);
    	-moz-border-radius: 4px; 
        -webkit-border-radius: 4px; 
        -khtml-border-radius: 4px;
    	border-radius: 4px;
    }
    .banière
    {
        margin-top:15px;
        height:200px;
    	width:1050px;
        border-radius: 5px 5px 5px 5px;
        position: relative;
        box-shadow: 0px 4px 4px rgb(28, 26, 25);	
    }
    .contact
    {
    	position:relative;
    	margin-left:120px;
    	text-align:left;
    	font-size:x-large;
     
    }
     
    .service
    {
    	position:relative;
    	margin-left:20px;
    	text-align:left;
    	font-size:x-large;
     
     
    }
     
    .diaporama
    {
    	position:relative;
    	left:12%;
    	right:10%;
     
    }
     
    /*  > Les liens  */ 
    a:link
    {
    	text-decoration:none;
     
    }
    a
    {
    	color:navy;
    }
    /* ************* */ 
     
    .photo
    {
     
        border-radius: 5px 5px 5px 5px;
        position: relative;
        box-shadow: 0px 4px 4px rgb(28, 26, 25);
    	   -moz-border-radius: 4px; 
        -webkit-border-radius: 4px; 
        -khtml-border-radius: 4px;
    	border-radius: 4px;
    	margin-bottom:6px;
    	text-align:center;
    }
     
     
     
    .ecriture
    {
    		text-align:left;
    		position:relative;
    		margin-left:18px;
    }
     
    .galerie
    {
    		border: 1px solid #333;
    		border-top-color: #707070;
    		background:#333 repeat  ;
    		margin-top:auto;
    		margin-left:auto;
    		margin-right:auto;
    		margin-bottom:auto; 
    }
    .article
    {
    	color: white;
    	width: 1050px;
    	height: 1600px;
    	border: 1px solid #333;
    	border-top-color: #707070;
    	background: -moz-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    	background: -webkit-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    	background: -ms-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    	background: -o-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    	-webkit-box-shadow: 0 1px 3px #999;
    	-moz-box-shadow: 0 1px 3px #999;
    	box-shadow: 0 1px 3px #999;
    	-webkit-border-radius: 6px;
    	-moz-border-radius: 6px;
    	border-radius: 6px;
    	margin-right: auto;
    	margin-left: auto;
    	font-size: large;
    	background-attachment: scroll;
    	background-color: #999;
    	background-repeat: repeat;
    	background-position: bottom;
    }
     
     
     
    /* MEEEEEEEEENNUUU EN CSS ****************************/
     
     
     
    #menu ul {
     margin:2.5em;
     padding:0;
     list-style-type:none;
     
     }
    #menu ul li {
     float:left;
     margin:auto;
     padding:-25px;
    		border: 1px solid #333;
    		border-top-color: #707070;
    		background: -moz-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    		background: -webkit-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    		background: -ms-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    		background: -o-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    		background: linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    		text-align: center;
    		-webkit-box-shadow: 0 1px 3px #999;
    		-moz-box-shadow: 0 1px 3px #999;
    		box-shadow: 0 1px 3px #999;
    		-webkit-border-radius: 6px;
    		-moz-border-radius: 6px;
    		border-radius: 6px;
     list-style:none;
     width:260.5px;
     
     }
    #menu, #menu ul    
    {
            margin : 0px; /* ni extérieure */
            list-style : none; /* on supprime le style par défaut de la liste */
            line-height : 21px; /* on définit une hauteur pour chaque élément */
            text-align : center; /* on centre le texte qui se trouve dans la liste */
    		padding:0px;  /* pas de marge intérieure */
    		position:relative;
     
     
    }
    #menu ul 
    {
    	margin:0;
    	padding:0;
    	list-style-type:none;
    	text-align:center;
    	display:inline-block;
    }
    #menu /* Ensemble du menu */
    {
        /*font-weight : bold; /* on met le texte en gras */
        font-family : Arial; /* on utilise Arial, c'est plus beau ^^ */
        font-size : 16px; /* hauteur du texte : 12 pixels */
    	position:relative;
    	margin:auto;
    	padding:1px;
    	z-index:10;
    	 width:1050px; 
    	height:60px; 
     
    	/* width:100%;
    	margin:0;
    	padding:10px , 0 , 0 , 0 ; */
    }
     
    #menu a /* Contenu des listes */
    {
            display : block; /* on change le type d'élément, les liens deviennent des balises de type block */
            padding : 0; /* aucune marge intérieure */
            text-decoration : none; /* on supprime le style par défaut des liens (la plupart du temps = souligné) */
         /*   width : 144px; /* largeur */
    		color:white;
    		text-align:center;
     
    }
     
    #menu li /* Elements des listes */     
    {
    		white-space:nnowrap;
            float : left;
    		margin:auto;
    		padding:0;
            /* pour IE qui ne reconnaît pas "transparent" */
            border-right : 1px solid #fff; /* on met une bordure blanche à droite de chaque élément */
    }
     
    /* IE ne reconnaissant pas le sélecteur ">" */
    html>body #menu li
    {
            border-right: 1px solid transparent ; /* on met une bordure transparente à droite de chaque élément */
    }
     
    #menu li ul /* Sous-listes */
    {
            position: absolute; /* Position absolue */
            width: 144px; /* Largeur des sous-listes */
            left: -999em; /* Hop, on envoie loin du champ de vision */
    }
     
     
    #menu li ul li /* Éléments de sous-listes */
    {
            /* pour IE qui ne reconnaît pas "transparent" (comme précédemment) */
            border-top : 1px solid #fff; /* on met une bordure blanche en haut de chaque élément d'une sous liste */
    }
     
    /* IE ne reconnaissant pas le sélecteur ">" */
    html>body #menu li ul li               
    {
            border-top : 1px solid transparent; /* on met une bordure transparente en haut de chaque élément */
    }
     
    #menu li ul ul
    {
            margin    : -22px 0 0 144px ; /* On décale les sous-sous-listes pour qu'elles ne soient pas au dessus des sous-listes */
            /* pour IE qui ne reconnaît pas "transparent" (comme précédemment) */
            border-left     : 1px solid #fff ; /* Petite bordure à gauche pour ne pas coller ... */     
    }
     
    /* IE ne reconnaissant pas le sélecteur ">" ... je me répète ;-) */
    html>body #menu li ul ul               
    {
            border-left     : 1px solid transparent ; /* on met une bordure transparente sur la gauche de chaque élément */
    }
    #menu a:hover /* Lorsque la souris passe sur un des liens */   
    {
            color: #4D8E99; /* On passe le texte en noir... */
            background:white; /* ... et au contraire, le fond en blanc */
    }
    #menu li:hover ul ul, #menu li.sfhover ul ul /* Sous-sous-listes lorsque la souris passe sur un élément de liste */
    {
            left: -999em; /* On expédie les sous-sous-listes hors du champ de vision */
    }
     
    #menu li:hover ul, #menu li li:hover ul, #menu li.sfhover ul, #menu li li.sfhover ul  /* Sous-listes lorsque la souris passe sur un élément de liste ET sous-sous-lites lorsque la souris passe sur un élément de sous-liste */
    {
            left: auto; /* Repositionnement normal */
            min-height: 0; /* Corrige un bug sous IE */
    }
     
     
     /* FIN MEEEEEEEEENNUUU EN CSS ****************************/
     
     
     
     
    /* TESTS DEROULANT */

    Merci de prendre soin de me répondre, je ne suis pas un professionnel mais juste un étudiant passionné.
    Images attachées Images attachées   

  2. #2
    Expert confirmé
    Avatar de rodolphebrd
    Homme Profil pro
    Indépendant
    Inscrit en
    Novembre 2012
    Messages
    2 336
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Indépendant
    Secteur : Conseil

    Informations forums :
    Inscription : Novembre 2012
    Messages : 2 336
    Points : 5 289
    Points
    5 289
    Par défaut
    bonjour,

    Il y a du ménage à effectuer avant de poster votre message:

    - enlever les commentaires conditionnels rendant la lecture difficile de votre code;
    - enlever le code qui ne sert à rien;
    - supprimer les infos redondantes pour ne déclarer qu'une fois un identifiant dans votre css:
    - #menu et #menu ul apparaissent plusieurs fois avec des propriétés qui se court-circuitent;
    - nnowrap n'existe pas (ligne 224).
    -border-radius et box-shadow n'ont plus besoin d'être préfixés ce qui aère le code:

    Pensez au temps que l'on passera à vous lire avant de vous répondre.

    N'hésitez pas à consulter les ressources de ce site:
    http://css.developpez.com/galerie/?p...us-horizontaux

  3. #3
    Nouveau membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2012
    Messages
    27
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haut Rhin (Alsace)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mai 2012
    Messages : 27
    Points : 38
    Points
    38
    Par défaut
    J'ai mis à jour selon vos recommandations mais je rappelle que je reste débutant ( c'est pour sa que je viens ici aussi ^^ ) donc il y a des choses que je n'ai pas forcément bien saisis ^^.
    Je remet mon code css " plus propre " mais il reste certainement des choses à corriger que je n'ai pas trouver.

    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
    @charset "utf-8";
    /* CSS Document */
     
     
    body
    {
    	background-image:url(Images/fondDuSite5.jpg);
    	background-repeat:repeat;
    	background-attachment:fixed;
    	background-size:cover;
    	color:white;
    	text-align:center;
    	width:100%;
    	height:100%;
    }
     
    footer
    {
    	background-color:#333;
    	position:relative;
    	width:1050px;
    	height:68px;
    	color:white;
    	margin-left:auto;
    	margin-right:auto;
    	    border-radius: 5px 5px 5px 5px;
        position: relative;
        box-shadow: 0px 4px 4px rgb(28, 26, 25);
    	-moz-border-radius: 4px; 
        -webkit-border-radius: 4px; 
        -khtml-border-radius: 4px;
    	border-radius: 4px;
    }
    .banière
    {
        margin-top:15px;
        height:200px;
    	width:1050px;
        border-radius: 5px 5px 5px 5px;
        position: relative;
        box-shadow: 0px 4px 4px rgb(28, 26, 25);	
    }
    .contact
    {
    	position:relative;
    	margin-left:120px;
    	text-align:left;
    	font-size:x-large;
     
    }
     
    .service
    {
    	position:relative;
    	margin-left:20px;
    	text-align:left;
    	font-size:x-large;
     
     
    }
     
    .diaporama
    {
    	position:relative;
    	left:12%;
    	right:10%;
     
    }
     
     
    a:link /*  > Les liens  */ 
    {
    	text-decoration:none;
     
    }
    a
    {
    	color:navy;
    }
     
     
    .photo
    {
     
        border-radius: 5px 5px 5px 5px;
        position: relative;
        box-shadow: 0px 4px 4px rgb(28, 26, 25);
    	   -moz-border-radius: 4px; 
        -webkit-border-radius: 4px; 
        -khtml-border-radius: 4px;
    	border-radius: 4px;
    	margin-bottom:6px;
    	text-align:center;
    }
     
     
     
    .ecriture
    {
    		text-align:left;
    		position:relative;
    		margin-left:18px;
    }
     
    .galerie
    {
    		border: 1px solid #333;
    		border-top-color: #707070;
    		background:#333 repeat  ;
    		margin-top:auto;
    		margin-left:auto;
    		margin-right:auto;
    		margin-bottom:auto; 
    }
    .article
    {
    	color: white;
    	width: 1050px;
    	height: 1600px;
    	border: 1px solid #333;
    	border-top-color: #707070;
    	background: -moz-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    	background: -webkit-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    	background: -ms-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    	background: -o-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    	-webkit-box-shadow: 0 1px 3px #999;
    	-moz-box-shadow: 0 1px 3px #999;
    	box-shadow: 0 1px 3px #999;
    	-webkit-border-radius: 6px;
    	-moz-border-radius: 6px;
    	border-radius: 6px;
    	margin-right: auto;
    	margin-left: auto;
    	font-size: large;
    	background-attachment: scroll;
    	background-color: #999;
    	background-repeat: repeat;
    	background-position: bottom;
    }
     
     
     
    #menu ul {
     margin:2.5em;
     padding:0;
     list-style-type:none;
     
     }
    #menu ul li {
     float:left;
     margin:auto;
     padding:-25px;
    		border: 1px solid #333;
    		border-top-color: #707070;
    		background: -moz-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    		background: -webkit-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    		background: -ms-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    		background: -o-linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    		background: linear-gradient(bottom , #666666 0pt, #5E5E5E 50%, #707070 51%, #808080 100%) repeat scroll 0 0 transparent;
    		text-align: center;
    		box-shadow: 0 1px 3px #999;
    		border-radius: 6px;
     list-style:none;
     width:260.5px;
     
     }
    #menu, #menu ul    
    {
            margin : 0px; 
            list-style : none; 
            line-height : 21px; 
            text-align : center; 
    		padding:0px;  
    		position:relative;
     
     
    }
    #menu ul 
    {
    	margin:0;
    	padding:0;
    	list-style-type:none;
    	text-align:center;
    }
    #menu 
    {
        font-family : Arial; 
        font-size : 16px; 
    	position:relative;
    	margin:auto;
    	padding:1px;
    	z-index:10;
    	 width:1050px; 
    	height:60px; 
     
    }
     
    #menu a 
    {
            display : block; 
            padding : 0; 
            text-decoration : none; 
    		color:white;
    		text-align:center;
     
    }
     
    #menu li 
    {
     
            float : left;
    		margin:auto;
    		padding:0;
            border-right : 1px solid #fff; 
    }
     
    html>body #menu li
    {
            border-right: 1px solid transparent ; 
    }
     
    #menu li ul 
    {
            position: absolute; 
            width: 144px; 
            left: -999em; 
    }
     
     
    #menu li ul li 
    {
            border-top : 1px solid #fff; 
    }
     
    html>body #menu li ul li               
    {
            border-top : 1px solid transparent;
    }
     
    #menu li ul ul
    {
            margin    : -22px 0 0 144px ; 
            border-left     : 1px solid #fff ; 
    }
     
    html>body #menu li ul ul               
    {
            border-left     : 1px solid transparent ; 
    }
    #menu a:hover  
    {
            color: #4D8E99; 
            background:white;
    }
    #menu li:hover ul ul, #menu li.sfhover ul ul 
    {
            left: -999em; 
    }
     
    #menu li:hover ul, #menu li li:hover ul, #menu li.sfhover ul, #menu li li.sfhover ul  
    {
            left: auto; 
            min-height: 0; 
    }
     
    #menu li:focus ul, #menu li li:focus ul, #menu li.sffocus ul, #menu li li.sffocus ul  
    {
            left: auto; 
            min-height: 0;
    }
    #menu li:focus ul ul, #menu li.sffocus ul ul 
    {
            left: -999em; 
    }

  4. #4
    Expert confirmé
    Avatar de rodolphebrd
    Homme Profil pro
    Indépendant
    Inscrit en
    Novembre 2012
    Messages
    2 336
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Indépendant
    Secteur : Conseil

    Informations forums :
    Inscription : Novembre 2012
    Messages : 2 336
    Points : 5 289
    Points
    5 289
    Par défaut
    En donnant comme largeur à votre #menu :
    width: 1152px
    tout rentre dans l'ordre.

  5. #5
    Nouveau membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2012
    Messages
    27
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haut Rhin (Alsace)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mai 2012
    Messages : 27
    Points : 38
    Points
    38
    Par défaut
    Merci d'avoir pris le temps de répondre mais cela ne m'arrange pas car ca décale mon menu et ce n'est plus centrer par rapport a mon bloc article qui lui à une longueur de 1050px.

  6. #6
    Expert confirmé
    Avatar de rodolphebrd
    Homme Profil pro
    Indépendant
    Inscrit en
    Novembre 2012
    Messages
    2 336
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Indépendant
    Secteur : Conseil

    Informations forums :
    Inscription : Novembre 2012
    Messages : 2 336
    Points : 5 289
    Points
    5 289
    Par défaut
    Alors essayez de ne pas donner de valeur à votre menu.

    Postez plus de code (comprenant notamment la balise article) ou la page en ligne.

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

Discussions similaires

  1. Réponses: 3
    Dernier message: 09/10/2009, 19h14
  2. Persistence de l'affichage d'un menu CSS
    Par kalazo dans le forum Mise en page CSS
    Réponses: 1
    Dernier message: 24/07/2009, 14h28
  3. Erreurs d'affichage d'un menu CSS avec IE7
    Par randotcom dans le forum Mise en page CSS
    Réponses: 2
    Dernier message: 26/04/2009, 07h47
  4. Problème d'affichage d'un menu css sous IE6 et IE7
    Par TomTom71 dans le forum Mise en page CSS
    Réponses: 9
    Dernier message: 06/06/2008, 09h27
  5. [CSS] Pb d'affichage de menu
    Par frog43 dans le forum Mise en page CSS
    Réponses: 3
    Dernier message: 25/03/2006, 16h52

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