Bonjour.
Voici mon problème : j'ai des DIV les unes à côté des autres, et chacune est composée d'une en-tête, d'une partie principale, et d'un pied-de-page, ces 3 en include.
Le problème est que sur Firefox 2 ma partie principale remonte de la valeur de la margin-top de cette partie principale alors que sur Firefox 3 tout passe bien.
J'ai indiqué balisé la partie qui pose problème dans le HTML et dans le CSS.
Voici le code HTML d'une page d'exemple :
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 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr"> <head> <link rel="stylesheet" type="text/css" href="../style/feuille_inscriptions.css" /> <script type="text/javascript" src="js/external.js"></script> </head> <body xml:lang="fr"> <div id="div_generale_inscriptions"> <div id="div_en_tete"> </div><div id="div_menu_inscriptions"> <a href="../index.php"><span id="div_lien_index"></span></a> <a href="activite.php"><span id="div_lien_activite"></span></a> <a href="association.php"><span id="div_lien_association"></span></a> <a href="articles.php"><span id="div_lien_articles"></span></a> <a href="galerie.php"><span id="div_lien_galerie"></span></a> <a href="http://aqcv.org/forum/index.php"><span id="div_lien_forum"></span></a> <a href="partenaires.php"><span id="div_lien_partenaires"></span></a> <a href="inscriptions.php"><span id="div_lien_inscriptions"></span></a> </div><div id="div_corps_inscriptions"> <div id="div_contenu_intro"> Bienvenue sur la page inscriptions de l'AQCV. </div> <div id="div_generale_inscription_site"> <div id="div_en_tete_inscription_site"> </div> //Début de la partie qui pose problème <div id="div_partie_principale_inscription_site"> <div id="div_contenu_partie_principale_inscription_site"> L'inscription au site de l'AQCV vous permet non seulement de participer au forum, mais aussi de recevoir la newsletter pour être informé des derniers news du site. <br /><br /> <a href="inscriptions_page_inscription_site.php">S'inscrire au site de l'AQCV</a> </div> </div> //Fin de la partie qui pose problème <div id="div_pied_page_inscription_site"> </div></div> <div id="div_generale_inscription_aqcv"> <div id="div_en_tete_inscription_aqcv"> </div><div id="div_partie_principale_inscription_aqcv"> <div id="div_contenu_partie_principale_inscription_aqcv"> L'inscription à l'AQCV dépend de votre statut : individuel, famille, personne morale. <br /><br /> <a href="inscriptions_page_inscription_aqcv.php">S'inscrire à l'AQCV</a> </div> </div><div id="div_pied_page_inscription_aqcv"> </div></div> <div id="div_generale_documents_utiles"> <div id="div_en_tete_documents_utiles"> </div><div id="div_partie_principale_documents_utiles"> <div id="div_contenu_partie_principale_documents_utiles"> Vous trouverez ici tous les documents pour vous inscrire à l'AQCV tels que : les fiches d'adhésion, la fiche sanitaire, l'autorisation parentale. <br /><br /> Vous pourrez aussi les imprimer chez vous en les téléchargeant.<br /><br /> <a href="inscriptions_page_documents_utiles.php">Voir les documents</a> </div> </div><div id="div_pied_page_documents_utiles"> </div></div> <hr /> </div><div id="div_pied_page"> <div id="div_liens_pages"> <a href="../index.php">Accueil</a> - <a href="activite.php">Activité</a> - <a href="association.php">Association</a> - <a href="articles.php">Articles</a> - <a href="galerie.php">Galerie</a> - <a href="forum.php">Forum</a> - <a href="partenaires.php">Partenaires</a> - <a href="inscriptions.php">Inscriptions</a> - <a href="mentions_legales.php">Mentions Légales</a> - <a href="admin/index.php">Admin</a> <br />© 2009 AQCV. Site réalisé par l'<a href="http://agencedeaaz.free.fr">agence De A à Z</a>. </div> </div> </div> </body> </html>
Voici le code CSS d'une page d'exemple :
Merci pour votre aide !
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 /* Style Body */ body { margin: 0px; background-color: #c9d3df; } /* Div Generale Page Inscriptions */ #div_generale_inscriptions { margin-top: 0px; margin-bottom: 22px; margin-left: auto; margin-right: auto; width: 800px; height: auto; } /* Div En-Tete */ #div_en_tete { margin-top: 0px; width: 800px; height: 150px; background-image: url(../images/fond_en_tete.gif); } /* Div Menu Inscriptions */ #div_menu_inscriptions { padding-top: 0px; margin-left: 0px; width: 800px; height: 68px; background-image: url(../images/fond_menu_inscriptions.png); } /* Div Lien Accueil */ #div_lien_index { margin-left: 15px; height: 37px; width: 92px; float: left; margin-top: 9px; } #div_lien_index:hover { margin-left: 15px; height: 37px; width: 92px; float: left; margin-top: 9px; background-image: url(../images/bouton_accueil_hover.png); } /* Div Lien Activité */ #div_lien_activite { margin-left: 0px; width: 88px; height: 37px; float: left; margin-top: 9px; } #div_lien_activite:hover { margin-left: 0px; width: 88px; height: 37px; float: left; margin-top: 9px; background-image: url(../images/bouton_activite_hover_association.png); } /* Div Lien Association */ #div_lien_association { margin-left: 0px; width: 121px; height: 37px; float: left; margin-top: 9px; } #div_lien_association:hover { margin-left: 0px; width: 121px; height: 37px; float: left; margin-top: 9px; background-image: url(../images/bouton_association_hover.png); } /* Div Lien Articles */ #div_lien_articles { margin-left: 0px; width: 84px; height: 37px; float: left; margin-top: 9px; } #div_lien_articles:hover { margin-left: 0px; width: 84px; height: 37px; float: left; margin-top: 9px; background-image: url(../images/bouton_articles_hover_galerie.png); } /* Div Lien Galerie */ #div_lien_galerie { margin-left: 0px; width: 101px; height: 37px; float: left; margin-top: 9px; } #div_lien_galerie:hover { margin-left: 0px; width: 101px; height: 37px; float: left; margin-top: 9px; background-image: url(../images/bouton_galerie_hover.png); } /* Div Lien Forum */ #div_lien_forum { margin-left: 0px; width: 76px; height: 37px; float: left; margin-top: 9px; } #div_lien_forum:hover { margin-left: 0px; width: 76px; height: 37px; float: left; margin-top: 9px; background-image: url(../images/bouton_forum_hover_partenaires.png); } /* Div Lien Partenaires */ #div_lien_partenaires { margin-left: 0px; width: 105px; height: 37px; float: left; margin-top: 9px; } #div_lien_partenaires:hover { margin-left: 0px; width: 105px; height: 37px; float: left; margin-top: 9px; background-image: url(../images/bouton_partenaires_hover_inscriptions.png); } /* Div Lien Inscriptions */ #div_lien_inscriptions { margin-left: 0px; width: 107px; height: 37px; float: left; margin-top: 9px; } /* Div Corps Inscriptions */ #div_corps_inscriptions { margin-top: -22px; padding-top: 20px; padding-bottom: 330px; margin-left: 0px; height: auto; width: 800px; font-size: 0.80em; font-family: Arial,Helvetica,sans-serif; background-image: url(../images/fond_partie_principale.png); background-repeat: repeat-y; } /* Div Contenu Intro */ #div_contenu_intro { margin-top: 0px; margin-left: 35px; height: auto; width: auto; color: black; } /* Div Générale Inscription Site */ #div_generale_inscription_site { margin-top: -2px; margin-left: 0px; height: auto; width: 260px; float: left; } /* Div En Tete Inscription Site */ #div_en_tete_inscription_site { margin-top: 25px; margin-left: 30px; height: 46px; background-image: url(../images/fond_en_tete_inscription_site.png); width: 225px; } //Début de la partie qui pose problème /* Div Partie Principale Inscription Site */ #div_partie_principale_inscription_site { margin-top: -17px; margin-left: 30px; height: auto; background-image: url(../images/fond_partie_principale_inscription_site.png); width: 225px; } //Fin de la partie qui pose problème /* Div Pied Page Inscription Site */ #div_pied_page_inscription_site { margin-top: 0px; margin-left: 30px; height: 5px; background-image: url(../images/fond_pied_page_inscription_site.png); width: 225px; } /* Div Contenu Partie Principale Inscription Site */ #div_contenu_partie_principale_inscription_site { padding-top: 5px; padding-bottom: 10px; padding-left: 20px; height: auto; width: 185px; text-align: justify; } /* Div Générale Inscription AQCV */ #div_generale_inscription_aqcv { margin-top: 23px; margin-left: 0px; height: auto; width: 260px; float: left; } /* Div En Tete Inscription AQCV */ #div_en_tete_inscription_aqcv { margin-top: 0px; margin-left: 30px; height: 46px; background-image: url(../images/fond_en_tete_inscription_aqcv.png); width: 225px; } /* Div Partie Principale Inscription AQCV */ #div_partie_principale_inscription_aqcv { margin-top: -17px; margin-left: 30px; height: auto; background-image: url(../images/fond_partie_principale_inscription_aqcv.png); width: 225px; background-repeat: repeat-y; } /* Div Pied Page Inscription AQCV */ #div_pied_page_inscription_aqcv { margin-top: 0px; margin-left: 30px; height: 5px; background-image: url(../images/fond_pied_page_inscription_aqcv.png); width: 225px; } /* Div Contenu Partie Principale Inscription AQCV */ #div_contenu_partie_principale_inscription_aqcv { padding-top: 5px; padding-bottom: 10px; margin-left: 22px; height: auto; width: 185px; text-align: justify; } /* Div Générale Documents Utiles */ #div_generale_documents_utiles { margin-top: 23px; margin-left: 515px; height: auto; width: 270px; } /* Hr Sous La Div Sans Float */ hr { clear: both; visibility: hidden; } /* Div En Tete Documents Utiles */ #div_en_tete_documents_utiles { margin-top: 0px; margin-left: 30px; height: 46px; background-image: url(../images/fond_en_tete_documents_utiles.png); width: 225px; } /* Div Partie Principale Documents Utiles */ #div_partie_principale_documents_utiles { margin-top: -17px; margin-left: 30px; height: auto; background-image: url(../images/fond_partie_principale_documents_utiles.png); width: 225px; background-repeat: repeat-y; } /* Div Pied Page Documents Utiles */ #div_pied_page_documents_utiles { margin-top: 0px; margin-left: 30px; height: 5px; background-image: url(../images/fond_pied_page_documents_utiles.png); width: 225px; } /* Div Contenu Partie Principale Documents Utiles */ #div_contenu_partie_principale_documents_utiles { padding-top: 5px; padding-bottom: 10px; margin-left: 22px; height: auto; width: 185px; text-align: justify; } /* Div Pied De Page */ #div_pied_page { margin-top: 0px; margin-left: 0px; height: 58px; width: 800px; background-image: url(../images/fond_pied_page.png); } /* Div Liens Pages */ #div_liens_pages { padding-top: 20px; margin-left: 50px; height: 30px; width: 700px; text-align: center; line-height: 1.50em; font-family: Arial,Helvetica,sans-serif; font-size: 0.70em; color: black; /* background-color: green;*/ } /* Liens */ a:link {color: #000000} /* lien non visité */ a:visited {color: #000000} /* lien visité */ a:hover {color: #005ac5} /* souris sur le lien */ a:active {color: #000000} /*lien selectionné */ /* Images Sans Bordures Bleues Pour IE */ img { border: none; }
Partager