bonjour à tous
J'ai un petit probleme que je n'arrive pas à solutionner.
J'ai téléchargé un kit graphique mais je n'arrive pas à faire que le menu de gauche s'adapte au corps de la page.
en effet lorsque je rajoute des éléments au menu celui si s'agrandit et fini par sortir
CSS
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 <!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" xml:lang="fr" > <head> <title>Diz 2.0 by XnEoZ pour kitgraphique.net</title> <link rel="stylesheet" href="style.css" type="text/css" media="screen" /> </head> <body> <div class="wrapper"> <div class="top_nav"> <h1 id="top_nav_red"><a href="index.html">Accueil</a></h1> <h1 id="top_nav_green"><a href="#">Tutoriaux</a></h1> <h1 id="top_nav_orange"><a href="#">Forums</a></h1> <form action="index.html" method="post" id="recherche"> <p> <input name="rch" type="text" class="text" value="Rechercher..." onfocus="javascript:this.value=''" /> <input type="submit" value="" class="button" /> </p> </form> </div> <div class="header"> <h1 id="google_head"><img src="./images/head_google.png" alt="Google" title="Google" height="60" width="468" /></h1> <h1 id="logo"><a href="index.html"><img src="./images/logo.png" alt="Web TuTo" title="Web TuTo" height="86" width="249" /></a></h1> <p id="bar"></p> <form action="index.html" method="post" id="connect"> <p> <input type="submit" value="Connecter" class="button" /> <label for="login">Nom d'utilisateur :</label><br /> <input name="login" id="login" type="text" class="text" /><br /> <label for="mdp">Mot de passe :</label><br /> <input name="mdp" id="mdp" type="text" class="text" /><br /> </p> <p><a href="#">Mot de passe oublié ?</a></p> </form> <div id="last_tuto"> <h1>Derniers Tutoriaux</h1> <p> <img src="./images/mobile_me.png" alt="Mobile Me" title="Mobile Me" height="50" width="55" /> <img src="./images/mobile_me.png" alt="Mobile Me" title="Mobile Me" height="50" width="55" /> <img src="./images/mobile_me.png" alt="Mobile Me" title="Mobile Me" height="50" width="55" /> </p> </div> <div id="last_comment"> <h1>Derniers Commentaires</h1> <p> > Lorem ipsum dolor sit amet...<br /> De XIBIT le 12/03/2008 </p> <p> > Lorem ipsum dolor sit amet...<br /> De XIBIT le 12/03/2008 </p> </div> </div> <div class="content"> <div class="menu"> <h2>Menu</h2> <ul id="menu"> <li><a href="index.html" title="Accueil">Accueil</a></li> <li><a href="#" title="Stockage rémunéré">stockage rémunéré</a></li> <li><a href="#" title="Jeux">Jeux</a></li> <li><a href="#" title="Services">Finance - HYIP</a></li> <li><a href="#" title="Forums">Mails rémunérés</a></li> <li><a href="#" title="Membres">Surf rémunéré</a></li> <li><a href="#" title="Contact">Avis rémunéré</a></li> <li><a href="#" title="Copyright">Copyright</a></li> </ul><ul id="menu"> <li><a href="index.html" title="Accueil">Accueil</a></li> <li><a href="#" title="Stockage rémunéré">stockage rémunéré</a></li> <li><a href="#" title="Jeux">Jeux</a></li> <li><a href="#" title="Services">Finance - HYIP</a></li> <li><a href="#" title="Forums">Mails rémunérés</a></li> <li><a href="#" title="Membres">Surf rémunéré</a></li> <li><a href="#" title="Contact">Avis rémunéré</a></li> <li><a href="#" title="Copyright">Copyright</a></li> </ul> <h2>Publicités</h2> <ul id="google"> <li> <img src="./images/menu_google.png" alt="Google Adsense" title="Google Adsense" height="240" width="120" /> </li> </ul> </div> <div class="text"> <h1 id="bar_red">Lorem ipsum dolor sit amet ...</h1> <p id="left"><img src="./images/mobile_me2.png" alt="Mobile Me" title="Mobile Me" height="116" width="139" /></p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> <p> </p> <h1 id="bar_orange">Lorem ipsum dolor sit amet ...</h1> <p id="center"><img src="./images/ban_web20.png" alt="Web 2.0" title="Web 2.0" height="61" width="468" /></p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> <div class="pagination"> <p class="page_rose"><a href="#">1</a></p> <p class="page_bleue"><a href="#">2</a></p> <p class="page_rose"><a href="#">3</a></p> <p class="page_rose"><a href="#">4</a></p> <p class="page_rose"><a href="#">5</a></p> </div> </div> </div> <div class="footer">© 2008 Votresite.com | Design by<a href="http://www.xneoz.eu"> XnEoZ </a>pour <a href="http://www.kitgraphique.net">kitgraphique.net</a></div> </div> </body> </html>
si une bonne ame à une idée
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 /* =========================================================== Elements de Page =========================================== */ * { margin:0; padding:0; } body { font-family:Verdana, Arial, sans-serif; font-size:11px; color:#50A8E3; font-weight:bold; background:url(images/background.png) repeat-x 0 0; background-color:#2493EC; } ul, li { list-style-type:none; } img { border:0; } a { text-decoration:none; color:#6A6A6A; } a:hover { text-decoration:underline; } input.text { background:url(images/bar_blue.png) repeat-x 0 0; padding:3px 0 0 3px; font-weight:bold; color:#FFFFFF; border:none; width:156px; height:18px; } input.button { background:url(images/button_rose.png) repeat-x 0 0; cursor:pointer; border:none; text-align:center; color:#FFFFFF; font-weight:bold; padding-top:-10px; width:89px; height:48px; } input.button:hover { text-decoration:underline; } /* =========================================================== Structure ================================================== */ .wrapper { margin:0 auto; position:relative; width:793px; -moz-border-radius:10px; } .top_nav { text-align:center; font-size:14px; font-weight:bold; height:5px; padding-top:25px; padding-left:25px; } .top_nav #top_nav_red { background:url(images/menu_red.png) no-repeat 0 0; padding-top:6px; font-size:15px; float:left; width:120px; height:30px; } .top_nav #top_nav_green { background:url(images/menu_green.png) no-repeat 0 0; padding-top:6px; font-size:15px; float:left; width:120px; height:30px; } .top_nav #top_nav_orange { background:url(images/menu_orange.png) no-repeat 0 0; padding-top:6px; font-size:15px; float:left; width:120px; height:30px; } .top_nav #recherche{ background:url(images/form_rch.png) no-repeat 0 0; margin-left:500px; padding-top:5px; width:244px; height:25px; } .top_nav #recherche input.text { background:url(images/bg_recherche.png) repeat-x 0 0; padding:2px 0 0 3px; -moz-border-radius:5px; margin-left:-36px; font-weight:normal; font-size: 11px; color:#FFFFFF; border:none; width:190px; height:18px; } .top_nav #recherche input.button { background:url(images/button_ok.png) repeat-x 0 0; position:absolute; margin: 1px 0 0 2px; cursor:pointer; border:none; width:36px; height:20px; } .top_nav a{ color:#000000; } .header { -moz-border-radius-topleft:10px; -moz-border-radius-topright:10px; background-color:#faf8f9; margin-top:25px; } .header h1#logo { padding:25px 16px 0 16px; height:75px; } .header h1#google_head { padding:22px 14px 0 16px; float:right; } .header p#bar { background:url(images/blue_head_bar.png) repeat-x 0 0; width:100%; height:46px; } .header #connect { -moz-border-radius-bottomleft:6px; -moz-border-radius-bottomright:6px; background-color:#FFFFFF; padding:10px 10px 10px 10px; height:88px; width:267px; float:left; } .header #connect label { cursor:pointer; color:#000000; width:200px; } .header #connect p { font-size:11px; padding-top:3px; } .header #connect a { color:#50A8E3; } .header #connect .button { margin-top:25px; padding-bottom:20px; float:right; } .header #last_tuto { -moz-border-radius-bottomleft:6px; -moz-border-radius-bottomright:6px; background-color:#FFFFFF; margin-left:27px; height:108px; width:226px; float:left; } .header #last_tuto p { padding-left:7px; padding-top:17px; } .header #last_tuto img { padding-left:10px; } .header #last_tuto h1 { background-image:url(images/bar_rose.png); background-repeat:no-repeat; background-position:top center; padding-top:2px; text-align:center; font-size:11px; color:#FFFFFF; height:17px; } .header #last_comment { -moz-border-radius-bottomleft:6px; -moz-border-radius-bottomright:6px; background-color:#FFFFFF; margin-left:27px; height:108px; width:226px; float:left; } .header #last_comment p { padding:10px 4px 0 16px; font-weight:normal; color:#ff4027; } .header #last_comment h1 { background-image:url(images/bar_pale.png); background-repeat:no-repeat; background-position:top center; padding-top:2px; text-align:center; font-size:11px; color:#FFFFFF; height:17px; } .content { -moz-border-radius:15px; background-color:#FFFFFF; padding-top:10px; padding-bottom:18px; margin-top:121px; } .content p { margin-bottom:5px; } .content .menu { margin:0 69px 0 9px; position:absolute; width:158px; } .content .menu h2 { background:url(images/blue_nav_bar.png) no-repeat 0 0; height:15px; padding:5px; color:#FFFFFF; font-size:11px; text-align:center; font-weight:bold; } .content .menu ul { margin:8px 0 15px 8px; font-weight:bold; } .content .menu ul#google { margin-left:15px; } .content .menu ul#menu li { background:url(images/puce.png) no-repeat 0 0; padding:0 0 5px 20px; } .content .menu ul#menu li:hover { background:url(images/puce_actif.png) no-repeat 0 0; } .content .menu ul#menu li a:hover { color:#ff20af; } .content .text { margin:0 30px 75px 230px; width:490px; } .content .text .pagination { margin-top:20px; } .content .text .pagination p.page_bleue { background:url(images/carre_bleue.png) no-repeat 0 0; font-weight:normal; padding-top:1px; font-size:20px; margin-left:6px; float:left; height:47px; width:32px; text-align:center; color:#FFFFFF; } .content .text .pagination p.page_rose { background:url(images/carre_rose.png) no-repeat 0 0; font-weight:normal; padding-top:1px; font-size:20px; margin-left:6px; float:left; height:47px; width:32px; text-align:center; color:#FFFFFF; } .content .text .pagination a{ color:#FFFFFF; } .footer { background:url(images/footer.png) no-repeat 0 0; padding-top:10px; color:#FFFFFF; text-align:center; width:794px; height:32px; } /* =========================================================== Divers ==================================================== */ h1#bar_red { background:url(images/bar_red.png) no-repeat 0 0; padding-top:5px; width:490px; height:20px; color:#FFFFFF; font-size:11px; text-align:center; font-weight:bold; margin-bottom:10px; } h1#bar_orange { background:url(images/bar_orange.png) no-repeat 0 0; padding-top:5px; width:490px; height:20px; color:#FFFFFF; font-size:11px; text-align:center; font-weight:bold; margin-bottom:10px; } #left { float:left; } #center { text-align:center; } #right { float:right; }
merci d'avance
Partager