Bonjour,
En plein dans la création d'un site administratif, je rencontre actuellement un petit souci. j'aimerais décaler ma page vers le bas afin de laisser un espace en haut de page.
Voici mon CSS:
Voici une de mes page HTML :
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 body { font: 100% Verdana, Arial, Helvetica, sans-serif; background-image:url(../img/fond.png); margin: auto; padding: 0; text-align: center; width: 1250px; color:#000; } a img { border: none ; } a img:hover { border: none ; } #timecase { width:225px; position:relative; font-size: 12px; float: left; padding-top: 86px; left: 10px; } #logo { width:225px; position:relative; float: left; } #menu{ background:#FFFFFF; height:45px; width: 800px; position: relative; float: left; padding-top: 86px; } .menu{ float:left; width:100px; height:45px; text-align:center; } .menu a{ display:block; height:30px; padding-top:15px; } .menu a:link, .menu a:visited{ text-decoration:none; color: #000000; font-family:verdana, sans-serif; font-size:12px; background:#abc url(../img/fond.jpg) 0 -45px; } .menu#activ a:link, .menu#activ a:visited{ background:#abc url(../img/fond.jpg); color: #000000; } .menu a:hover, .menu a:active, .menu a:focus{ background:#abc url(../img/fond.jpg) 0 -90px; color: #0099FF; } .menu#activ a:hover, .menu #activ a:active, .menu#activ a:focus{ background:#abc url(../img/fond.jpg); color: #0099FF; } #conteneur { margin: 0 auto; text-align: left; border-top: 1px solid; border-bottom: 1px solid; height: 100%; background-color: #D7D8D8; } #header { width: 1250px; height: 131px; background:#FFFFFF; margin: auto; border-left: 1px solid black; border-right: 1px solid black; } #sidebar1 { float:left; width: 210px; height: auto; background: #FFFFFF; padding: 15px 0; font-size: 10px; text-align: center; border-left: 1px solid black; border-right: 1px solid black; border-bottom: 1px solid black; } #sidebar1 form { font-size: 85%; text-align: center; } #sidebar1 h3 { width:188px; height:20px; line-height:18px; background-image:url(../img/fd_blue.png); color:white; text-decoration:none; font-size:12px; margin-left: 10px; margin-right: 10px; text-align: center; } #sidebar2 { float:right; width: 210px; height: auto; background:#FFFFFF; padding: 15px 0; border-left: 1px solid black; border-right: 1px solid black; border-bottom: 1px solid black; font-size: 13px; } #sidebar2 h3 { width:188px; height:20px; line-height:18px; background-image:url(../img/fd_blue.png); color:white; text-decoration:none; font-size:12px; text-align:center; margin-left: 10px; margin-right: 10px; } #sidebar2 a { text-decoration:none; padding-left:10px; color:black; } #sidebar2 a:hover { background-color:#0099FF; color:black; text-decoration:none; } #sidebar2 li { color: #000; text-decoration: none; } #flashinfodiv { margin: 5px 225px 5px 225px; height: auto; background-color: #D7D8D8; } #actudiv { margin: 5px 225px 5px 225px; height: auto; min-height: 100%; background-color: #D7D8D8; } #form{ margin: 5px 225px 5px 225px; height: auto; min-height: 100%; background-color: #D7D8D8; font-size: 13px; text-align: center; padding: 80px 0; } #contact { margin: 5px 225px 5px 225px; border: 2px solid #0099FF; padding: 10 10; font-size: 12px; height: auto; background-color: #D7D8D8; } #part { margin: 5px 225px 5px 225px; font-size: 13px; padding: 10 10; height: auto; min-height: 100%; text-align: center; } #part p:first-letter { padding-left:10px; font-weight:bold; font-size:120%; } #footer { padding: 5 10px; background-color: #969696; height: 19px; font-size: 12px; text-align: right; } #footer p { margin: 0; padding: 2px 0; }
et voici un apercu de mon site afin de mieux comprendre :
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 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Les partenaires - Métropolitains</title> <link rel="stylesheet" href="./css/style.css" type="text/css" media="screen" title="Normal" /> </head> <body> <div id="header"><!--Entête / bannière à centrer--> <div id="logo"> <img src="./img/top.png" alt="Metropolitains.Org vous souhaite la bienvenue !"> </div> <div id="menu" align="center"> <div class="menu" id="active"> <a href="accueil.php">Accueil</a> </div> <div class="menu" > <a href="presentation.php">Présentation</a> </div> <div class="menu" > <a href="faq.php">FAQ</a> </div> <div class="menu" > <a href="photo.php">Album photos</a> </div> <div class="menu" > <a href="partenaires.php">Partenaires</a> </div> <div class="menu" > <a href="calendar.php">Calendrier</a> </div> <div class="menu" > <a href="contact.php">Contact</a> </div> <div class="menu" > <a href="link.php">Liens utiles</a> </div> </div> <div id="timecase" align="left"> <?php $date = date("d-m-Y"); $heure = date("H:i"); echo 'Bienvenue,<br />'; echo 'Nous somme le : '.$date.'<br /> Il est '.$heure.'.h'; ?> </div> </div> <div id="conteneur"> <div id="sidebar1"><!--Colonne gauche / Administration--> <h3>Administration</h3> <form method="post" action="../script_auth.php"> <label for="pseudo"><strong>Login :</strong><br /></label> <input type="text" name="pseudo" id="pseudo" value="" /><br/><br/> <label for="pass"><strong>Mot de passe :</strong><br /></label> <input type="password" name="pass" id="pass" /><br/> <br/> <input type="submit" name="OK" value="Se connecter !"/> <br/><br/> </form> <p><a href="passlost.php">Mot de passe oublié ?</a></p> </div> <div id="sidebar2"><!--Colonne droite / Commissions--> <h3>Commissions</h3> <a href="#"><img src="./img/stylexp.png" width="16" height="16"> Cinéma, Théatre </a><br /> <a href="#"><img src="./img/stylexp.png" width="16" height="16"> Sport </a><br /> <a href="#"><img src="./img/stylexp.png" width="16" height="16"> Loisir et spectacle </a><br /> <a href="#"><img src="./img/stylexp.png" width="16" height="16"> Culture </a><br /> <a href="#"><img src="./img/stylexp.png" width="16" height="16"> Temps forts </a><br /> <h3>Diaporama</h3> </div> <div id="form"><!--Section actualité--> <p> Veuillez saisir votre adresse E-mail, votre mot de passe vous sera envoyé. <br /> <form method="post" action="../script_auth.php"> <label for="pseudo"><strong>Adresse E-mail:</strong><br /></label> <input type="text" name="pseudo" id="mail" value="" /><br/><br/> <input type="submit" name="OK" value="Valider"/> <br/><br/> </form> </p> </div> </div> <div id="footer"> Plan du site - mentions légales </div> </body> </html>
En attente de réponses, merci !
Partager