Bonsoir à tous,
Je viens à l'aide car je suis vraiment coincé :
Je place des divs et je souhaite qu'ils soient les uns en dessous des autres mais collé. Ça ne marche pas pour l'un d'entre eux et je me retrouve avec un espace bisard en-dessous et au-dessus de celui-ci même en mettant les propriétés CSS "margin:0px;" et "padding:0px;".
Je vous met le code, ce sera plus clair :
Code xhtml : 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 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link href="style.css" rel="stylesheet" type="text/css" /> <script src="js/jquery-1.3.js" type="text/javascript"></script> <script src="js/text_size.js" type="text/javascript"></script> <script src="js/scriptInfoBulle.js" type="text/javascript"></script> <script src="js/main_script.js" type="text/javascript"></script> <title>Portfolio de Thomas HENRY-GOMES - Accueil</title> </head> <body> <div id="TetePage_Cadre"> <div id="TetePage_Contenu"> <div id="Gestion_Taille_Texte"> <p id="Taille_Texte"> Taille du texte : <span onclick="changeFontSize(-1); return false;" onmouseover="montre('Diminuer la Taille');" onmouseout="cache();">A-</span> <span onclick="resetFontSize(); return false;" onmouseover="montre('Retour à la Taille par défaut');" onmouseout="cache();">A</span> <span onclick="changeFontSize(1); return false;" onmouseover="montre('Augmenter la Taille');" onmouseout="cache();">A+</span> </p> </div> </div> </div> <div id="Menu_Cadre"> <div id="Menu_Contenu"> <a id="Accueil" href="./" onmouseover='$("#Menu_Contenu #Menu_Info").css("left", $("#Menu_Contenu #Accueil").position().left).html("Accueil du Portfolio");'>A<span style="font-size: 80%;">CCUEIL</span></a> - <a id="Web" href="./web.php" onmouseover='$("#Menu_Contenu #Menu_Info").css("left", $("#Menu_Contenu #Web").position().left).text("Mes créations Web");'>W<span style="font-size: 80%;">EB</span></a> - <a id="Java" href="./java.php" onmouseover='$("#Menu_Contenu #Menu_Info").css("left", $("#Menu_Contenu #Java").position().left).text("Mes créations Java");'>J<span style="font-size: 80%;">AVA</span></a> - <a id="Profil" href="./profil.php" onmouseover='$("#Menu_Contenu #Menu_Info").css("left", $("#Menu_Contenu #Profil").position().left).text("Mon CV");'>P<span style="font-size: 80%;">ROFIL</span></a> - <a id="Contact" href="./contact.php" onmouseover='$("#Menu_Contenu #Menu_Info").css("left", $("#Menu_Contenu #Contact").position().left).text("Formulaire de contact");'>C<span style="font-size: 80%;">ONTACT</span></a> <span id="Menu_Info"></span> <span id="Heure"></span> </div> </div> <div id="Ombre_Menu_Bottom"> <div id="Ombre_Menu"></div> </div> <div id="Contenu_Cadre"> <div id="Contenu_Contenu"> <p>Accueil</p> </div> </div> <div id="PiedPage_Cadre"> <div id="PiedPage_Contenu"> <span><a href="./">A<span style="font-size: 80%;">CCUEIL</span></a> - Accueil du Portfolio<br /><br /> <a href="./web.php">W<span style="font-size: 80%;">EB</span></a> - Mes créations Web<br /><br /> <a href="./java.php">J<span style="font-size: 80%;">AVA</span></a> - Mes créations Java<br /><br /> <a href="./profil.php">P<span style="font-size: 80%;">ROFIL</span></a> - Mon CV<br /><br /> <a href="./contact.php">C<span style="font-size: 80%;">ONTACT</span></a> - Formulaire de contact<br /><br /><br /> </span> Copyright © 2008-2010 <a href='http://www.thomas.henry-gomes.fr' onmouseover="montre('http://www.thomas.henry-gomes.fr');" onmouseout="cache();">Thomas HENRY-GOMES</a> - Tous droits réservés </div> </div> <div id="curseur" class="infobulle"></div> </body> </html>
Code css : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195 body { font-family: Helvetica, sans-serif, Arial; background-color: #FFFFFF; margin: 0px; padding: 0px; } /* Gestion des liens */ a:active, a:focus { outline: none; } a { color: #2677C9; text-decoration: none; } a:hover { color: #C0C0C0; } /* Gestion de la tete de page */ #TetePage_Cadre { width: auto; height: 100px; margin: 0px; background-color: #182646; } #TetePage_Contenu { width: 980px; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; height: 90px; padding: 5px; background-image: url(images/header.png); background-position: left; background-repeat: no-repeat; position: relative; } /* Gestion de la Taille du Texte */ #Gestion_Taille_Texte { padding: 0px; width: 200px; margin: 5px; position: absolute; bottom: 0px; right: 0px; } #Taille_Texte { float: right; margin: 0px; padding: 0px; color: #747C8F; font-size: 80%; } #Taille_Texte:hover { color: #FFFFFF; } #Taille_Texte span:hover { color: #747C8F; cursor: pointer; } /* Gestion des infobulles */ .infobulle { position: absolute; border: 1px solid #C0C0C0; padding: 4px; background-color: #282828; font-size: 80%; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; text-transform: none; text-decoration: none; color: #FFFFFF; display: none; } /* Gestion de l'heure */ #Heure { position: absolute; top: 5px; right: 0px; font-style: normal; font-weight: normal; text-transform: none; text-decoration: none; margin: 0px; margin-right: 5px; padding: 0px; } /* Gestion du menu */ #Menu_Cadre { width: auto; height: 27px; margin: 0px; background-image: url(images/background_menu.png); background-repeat: repeat-x; } #Menu_Contenu { width: 975px; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; height: 22px; padding: 0px; padding-top: 5px; padding-left: 15px; font-size: 90%; font-weight: bold; position: relative; } #Menu_Info { position: absolute; top: 27px; border: 1px solid #C0C0C0; padding: 4px; background-color: #282828; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; text-transform: none; text-decoration: none; color: #FFFFFF; } #Menu_Contenu a { color: #2677C9; text-decoration: none; border: 0px; } #Menu_Contenu a:hover { color: #C0C0C0; } #Ombre_Menu_Bottom { width: auto; height: 5px; margin: 0px; padding: 0px; background-image: url(images/ombre_bottom.png); background-repeat: repeat-x; } #Ombre_Menu { width: 990px; height: 5px; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; padding: 0px; } /* Gestion du contenu */ #Contenu_Cadre { width: auto; margin: 0px; padding: 0px; background-color: #E9E9E9; } #Contenu_Contenu { width: 960px; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; padding: 0px; } /* Gestion du pied de page */ #PiedPage_Cadre { width: auto; margin: 0px; background-color: #2F2F2E; } #PiedPage_Contenu { width: 960px; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; padding: 15px; color: #FFFFFF; font-size: 90%; } #PiedPage_Contenu a { color: #2677C9; } #PiedPage_Contenu a:hover { color: #C0C0C0; }
C'est la div qui contient le texte "Accueil" juste sous le menu.
Merci d'avance
Partager