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 :

Div, problème de supperposition


Sujet :

CSS

  1. #1
    Candidat au Club
    Profil pro
    Inscrit en
    Janvier 2008
    Messages
    2
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2008
    Messages : 2
    Points : 2
    Points
    2
    Par défaut Div, problème de supperposition
    Bonjour à tous !!!
    J'utilise un système de menu déroulant en css sur mon site et "petit problème", je dirais même plutot "gros problème" car la plus-part des forums où je vais me donnent aucune explication à mon problème. Les sous menu s'affichent en arrière plan sur mon site

    Ma feuille CSS du menu :
    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
     
    #menuDeroulant
    {
    	float: right;
    	background: #F23000;
    	width: 800px;
    	height: 21px;
    	list-style-type: none;
    	margin: 0px;
    	padding: 10px;
    	border: 0;
    	position: inherit;
    	top: 0;
    	left: 0;
    	z-index:1000;
    	background: #FFFFFF url(images/img01.gif) repeat-x;
     
    }
    #menuDeroulant li
    {
    	float: right;
    	width: 75px;
    	margin: 0;
    	padding: 0;
    	border: 0;
    	z-index:1000;
    }
    #menuDeroulant li a:link, #menuDeroulant li a:visited
    {
    	display: block;
    	height: 1%;
    	color: #FFF;
    	background: #F23000;
    	margin: 0;
    	padding: 4px 8px;
    	border-right: 0px solid #fff;
    	text-decoration: none;
    	z-index:1000;
    }
    #menuDeroulant li a:hover { background-color: #F23000; }
    #menuDeroulant li a:active { background-color: #F23000; }
     
    #menuDeroulant .sousMenu
    {
    	display: none;
    	list-style-type: none;
    	margin: 0;
    	padding: 0;
    	border: 0;
    	z-index:1000;
    	}
    #menuDeroulant .sousMenu li
    {
    	float: right;
    	margin: 0;
    	padding: 0;
    	border: 0;
    	width: 149px;
    	border-top: 1px solid transparent;
    	border-right: 1px solid transparent;
    	z-index:1000;
    }
    #menuDeroulant .sousMenu li a:link, #menuDeroulant .sousMenu li a:visited
    {
    	display: block;
    	color: #FFF;
    	margin: 0;
    	border: 0;
    	text-decoration: none;
    	background: transparent url("fondTR.png") repeat;
    	z-index:1000;
    }
    #menuDeroulant .sousMenu li a:hover
    {
    	display: block;
    	color: #FFF;
    	margin: 0;
    	border: 0;
    	text-decoration: none;
    	background: transparent url("fondTR2.png") repeat;
    	z-index:1000;
    }
     
    #menuDeroulant li:hover > .sousMenu { display: block; }
    La feuille CSS du design :
    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
    body {
    	margin: 0;
    	padding: 0;
    	background: #FFFFFF url(images/img01.gif) repeat-x;
    	font: 13px Arial, Helvetica, sans-serif;
    	color: #626262;
    }
     
    form {
    	margin: 0;
    	padding: 0;
    }
     
    input {
    	padding: 5px;
    	background: #FEFEFE url(images/img13.gif) repeat-x;
    	border: 1px solid #626262;
    	font: normal 1em Arial, Helvetica, sans-serif;
    	z-index:500;
    }
     
    h1, h1 a, h2, h2 a, h3, h3 a {
    	margin: 0;
    	text-decoration: none;
    	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    	color: #444444;
    }
     
    h1 {
    	letter-spacing: -3px;
    	font-size: 2.6em;
    }
     
    h2 {
    	letter-spacing: -2px;
    	font-size: 2em;
    	z-index:500;
    }
     
    h3 {
    	font-size: 1em;
    }
     
    p, ol, ul {
    	margin-bottom: 2em;
    	line-height: 200%;
    }
     
    blockquote {
    	margin: 0 0 0 1.5em;
    	padding-left: 1em;
    	border-left: 5px solid #DDDDDD;
    }
     
    a {
    	color: #EB1400;
    }
     
    a:hover {
    	text-decoration: none;
    }
     
    /* Header */
     
    #header {
    	height: 82px;
    	z-index:1000;
     
    }
     
    #logo h1, #logo p {
    	float: left;
    }
     
    #logo h1 {
    	padding: 13px 0 0 25px;
    }
     
    #logo p {
    	margin: 0;
    	padding: 20px 0 0 4px;
    	line-height: normal;
    	text-transform: lowercase;
    	font-weight: bold;
    }
     
    #logo a {
    	text-decoration: none;
    	color: #FFFFFF;
    }
     
    #menu {
    	float: right;
    }
     
    #menu ul {
    	margin: 0;
    	padding: 0;
    	list-style: none;
    }
     
    #menu li {
    	display: block;
    	float: left;
    	height: 82px;
    }
     
    #menu a {
    	display: block;
    	width: 110px;
    	height: 46px;
    	padding: 24px 0 0 0;
    	text-decoration: none;
    	text-align: center;
    	letter-spacing: -1px;
    	font: bold 1.6em "Trebuchet MS", Arial, Helvetica, sans-serif;
    	color: #FABEB3;
    }
     
    #menu a:hover {
    	width: 108px;
    	background: url(images/img03.gif) repeat-x;
    	border-left: 1px solid #FFFFFF;
    	border-right: 1px solid #FFFFFF;
    	color: #EB1400;
    }
     
    #menu .current_page_item {
    	background: url(images/img02.gif) no-repeat center bottom;
    }
     
    #menu .current_page_item a {
    	width: 108px;
    	background: #FFEC70 url(images/img03.gif) repeat-x;
    	border-left: 1px solid #FFFFFF;
    	border-right: 1px solid #FFFFFF;
    	color: #EB1400;
    }
     
    /* Page */
     
    #page {
    	padding: 40px 60px 0 60px;
    	z-index:500
    }
     
    /* Content */
     
    #content {
    	margin-right: 340px;
    }
     
    .post {
    	margin-bottom: 10px;
    	background: url(images/img05.gif) repeat-x;
    }
     
    .post .title {
    	background: url(images/img07.gif) no-repeat right top;
    }
     
    .post .title h2 {
    	padding: 30px 30px 0 30px;
    	background: url(images/img06.gif) no-repeat;
    	font-size: 2.2em;
    }
     
    .post .title p {
    	margin: 0;
    	padding: 0 0 0 30px;
    	line-height: normal;
    	color: #BABABA;
    }
     
    .post .title p a {
    	color: #BABABA;
    }
     
    .post .entry {
    	padding: 20px 40px 20px 30px;
    }
     
    .post .links {
    	margin: 0;
    	padding: 0 30px 30px 30px;
    	background: url(images/img15.gif) no-repeat left bottom;
    }
     
    .post .links a {
    	padding: 0 23px;
    	text-decoration: none;
    	font-weight: bold;
    }
     
    .post .links a:hover {
    	text-decoration: underline;
    }
     
    .post .links .more {
    	background: url(images/img16.gif) no-repeat left center;
    }
     
    .post .links .comments {
    	background: url(images/img17.gif) no-repeat left center;
    }
     
    /* Sidebar */
     
    #sidebar {
    	float: right;
    	width: 300px;
    }
     
    #sidebar ul {
    	margin: 0;
    	padding: 0;
    	list-style: none;
    }
     
    #sidebar li {
    	margin-bottom: 10px;
    	background: url(images/img10.gif) no-repeat left bottom;
    }
     
    #sidebar li ul {
    	padding: 0 30px 40px 30px;
    }
     
    #sidebar li li {
    	margin: 0;
    	padding-left: 20px;
    	background: url(images/img11.gif) no-repeat 5px 50%;
    }
     
    #sidebar h2 {
    	padding: 30px 30px 20px 30px;
    	background: url(images/img09.gif) no-repeat;
    	font-weight: normal;
    	color: #EB1400;
    }
     
    /* Search */
     
    #search {
    	padding: 20px 30px 40px 30px;
    }
     
    #search input {
    	padding: 0;
    	width: 70px;
    	height: 29px;
    	background: #DFDFDF url(images/img14.gif) repeat-x;
    	font-weight: bold;
    }
     
    #search #s {
    	padding: 5px;
    	width: 150px;
    	height: auto;
    	background: #FEFEFE url(images/img13.gif) repeat-x;
    	border: 1px solid #626262;
    	font: normal 1em Arial, Helvetica, sans-serif;
    }
     
    #search br {
    	display: none;
    }
     
    /* Categories */
     
    #sidebar #categories li {
    	background: url(images/img12.gif) no-repeat left center;
    }
     
    /* Calendar */
     
    #calendar_wrap {
    	padding: 0 30px 40px 30px;
    }
     
    #calendar table {
    	width: 100%;
    	text-align: center;
    }
     
    #calendar thead {
    	background: #F1F1F1;
    }
     
    #calendar tbody td {
    	border: 1px solid #F1F1F1;
    }
     
    #calendar #prev {
    	text-align: left;
    }
     
    #calendar #next {
    	text-align: right;
    }
     
    #calendar tfoot a {
    	text-decoration: none;
    	font-weight: bold;
    }
     
    #calendar #today {
    	background: #FFF3A7;
    	border: 1px solid #EB1400;
    	font-weight: bold;
    	color: #EB1400
    }
     
    /* Footer */
     
    #footer {
    	padding: 70px 0 50px 0;
    	background: #757575 url(images/img08.gif) repeat-x;
    }
     
    #footer p {
    	margin-bottom: 1em;
    	text-align: center;
    	line-height: normal;
    	font-size: .9em;
    	color: #BABABA;
    }
     
    #footer a {
    	padding: 0 20px;
    	text-decoration: none;
    	color: #DDDDDD;
    }
     
    #footer a:hover {
    	color: #FFFFFF;
    }
     
    #footer .rss {
    	background: url(images/img18.gif) no-repeat left center;
    }
     
    #footer .xhtml {
    	background: url(images/img19.gif) no-repeat left center;
    }
     
    #footer .css {
    	background: url(images/img20.gif) no-repeat left center;
    }
     
    #footer .legal a {
    	padding: 0;
    }
     
    .gallery{
              margin:0; padding:0;
              overflow:hidden; /* Clears the floats */
              width:600px; /* IE and older Opera fix for clearing, they need a dimension */
              list-style:none;
            }
              .gallery li{
                float:left;
                display:inline; /* For IE so it doesn't double the 1% left margin */
                width:23.8%;
                margin:0 0 10px 1%; padding:10px 0;
                height:83px; /* Height of img (75) + 2 times 3px padding + 2 times 1px border = 83px */
                position:relative; /* This is the key */
                background:url(45degree.png);
              }
                .gallery a,
                .gallery img{
                  display:block;
                  width:100%;
                }
     
                a img{ border:none; } /* A small fix */
     
                .gallery a:link,
                .gallery a:visited,
                .gallery a:focus,
                .gallery a:hover,
                .gallery a:active{
                  padding:3px;
                  background:#eeefef;
                  width:75px; height:75px;
                  border:1px solid #eeefef; /* We blend the border with the bg, as if it isn't there */
                  position:absolute; top:50%; left:50%; /* position it so that image's top left corner is in the center of the list item */
                  margin:-41px 0 0 -41px; /* Pull the image into position with negative margins (margins value is half of the width of the image) */
                }
                .gallery a:hover{
                  border-color:#dfdfdf;
                }
     
                /* These are all optional, for decoration purpouses only */
                .gallery{
                  padding-bottom:10px;
                  margin-top:10px;
                }
    Voiçi mon site

  2. #2
    Candidat au Club
    Inscrit en
    Janvier 2008
    Messages
    3
    Détails du profil
    Informations forums :
    Inscription : Janvier 2008
    Messages : 3
    Points : 3
    Points
    3
    Par défaut
    Je ne comprends pas ton problème car moi ça fonctionne apparement.

Discussions similaires

  1. Alignement de div, problème affichage avec IE
    Par tofito dans le forum Mise en page CSS
    Réponses: 3
    Dernier message: 06/05/2008, 16h26
  2. [AJAX] Rechargement de div : problème avec IE 6
    Par fayred dans le forum Général JavaScript
    Réponses: 2
    Dernier message: 25/07/2007, 12h07
  3. [div] problème d'alignement vertical
    Par xenos dans le forum Mise en page CSS
    Réponses: 3
    Dernier message: 29/11/2006, 12h36
  4. show_hide un div: problème avec retour
    Par -DeN- dans le forum Général JavaScript
    Réponses: 4
    Dernier message: 17/02/2006, 12h16
  5. [CSS] Image dans un Div -> problème de hauteur
    Par Torpedox dans le forum Mise en page CSS
    Réponses: 3
    Dernier message: 02/02/2006, 23h40

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