Bonjour à tous,
Je me suis mis au html5, css3 et responsive design
J'aurai besoin d'être corrigé donc je viens poster ici (enfin si vous avez le temps) afin de voir ce qui va et ce qui ne va pas
je vous donne l'url et les différents code
http://vaurel.free.fr/atecna/atecna.html
la page html5 :
le 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 <!doctype html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>ATECNA HTML5</title> <link type="text/css" rel="stylesheet" href="actena.css" /> <link type="text/css" rel="stylesheet" href="menu.css" /> <link type="text/css" rel="stylesheet" href="responsive.css" /> <meta name="viewport" content="width=device-width"> </head> <body> <section id="encadre"> <header></header> <nav> <ul id="menu"> <li><a href="#">image</a></li> <li><img src="images/barre_entre_onglet.jpg" /></li> <li><a href="#">Qui sommes nous?</a> <ul> <li>kkkk</li> <li>gggg</li> <li>kkkk</li> <li>gggg</li> </ul> </li> <li><img src="images/barre_entre_onglet.jpg" /></li> <li><a href="#">Nos prestations</a> <div style="clear:both;"></div> <ul> <li>kkkk</li> <li>gggg</li> </ul> </li> <li><img src="images/barre_entre_onglet.jpg" /></li> <li><a href="#">Nos réalisations</a> <div style="clear:both;"></div> <ul> <li>kkkk</li> <li>gggg</li> </ul> </li> <li><img src="images/barre_entre_onglet.jpg" /></li> <li><a href="#">Recrutement</a> <div style="clear:both;"></div> <ul> <li>kkkk</li> <li>gggg</li> </ul> </li> <li><img src="images/barre_entre_onglet.jpg" /></li> <li><a href="#">Contact</a></li> </ul> </nav> <section id="centre"> <section id="hierarchie"> <span><a href="#">Accueil</a></span> <span>></span> <span><a href="#">Qui sommes nous? </a></span> <span>></span> <span>Présentation</span> </section> <article> <h1>La vision de l'entreprise pour 2012</h1> <section id="gauche"> <h2>Lorem ipsum dolor sit amet</h2> <p> Consectetur adipiscing elit. Nullam enim urna, porta sed tempus ac, laoreet ut magna. Donec vitae neque lorem, sit amet viverra nisl. Pellentesque vitae porttitor diam. Pellentesque diam erat, consectetur eget porttitor sed, molestie sit amet massa. Cras sit amet augue vitae nulla vehicula elementum ut id nibh. Praesent sapien enim, bibendum et auctor eu, posuere vel mi. Nunc placerat lacinia diam, vel posuere augue accumsan a. Cras laoreet justo quis diam dapibus faucibus. Donec metus odio, ullamcorper vulputate sollicitudin ac, mattis a nibh. Nulla facilisi. </p> <h2>Aenean tincidunt felis sed diam mollis </h2> <p> Phasellus scelerisque urna et turpis sollicitudin egestas. Etiam pretium bibendum placerat. Etiam rhoncus diam vitae elit blandit eu dignissim justo bibendum. Cras id elit ante, non rutrum lorem. Pellentesque orci felis, porta sit amet rhoncus sit amet, consequat vel augue. Donec porta erat vel velit bibendum ut pellentesque lacus aliquet. Quisque non enim sem. Pellentesque et metus sit amet dui sagittis ultricies a at nunc. Nulla fringilla est et est feugiat porttitor. Aliquam dignissim commodo aliquet.vestibulum justo imperdiet eget. Sed varius, lectus non viverra sodales, lorem lectus laoreet neque, in luctus velit magna eget enim. Praesent molestie, sapien vitae tristique pulvinar, mi eros tincidunt massa, ornare fringilla sem ipsum euismod mauris. Nulla bibendum placerat quam sed mollis. Vestibulum facilisis risus quis orci venenatis sollicitudin. </p> </section> </article> <aside> <iframe width="283" height="203" src="http://www.youtube.com/embed/SkSxXdAvICQ"></iframe> <img src="images/slider.jpg" style="margin-top:20px;"/> </aside> <div style="clear:both;"></div> <section id="bas"> <h1>Besoin de plus d'information?</h1> <h2>Lorem ipsum dolor sit amet</h2> <p> Consectetur adipiscing elit. Nullam enim urna, porta sed tempus ac, laoreet ut magna. Donec vitae neque lorem, sit amet viverra nisl. Pellentesque vitae porttitor diam. </p> <form method ="post" action="" name=""> <section style="float:left;"> <input type="text" name="nom" placeholder="Votre nom" size="40" required/> <br/> <input type="text" name="prenom" placeholder="Votre prénom" size="40" required/><br/> <input type="email" name="mail" placeholder="Votre adresse mail" size="40" required/><br/> </section> <textarea placeholder="expliquez ici votre demande" cols="40" rows="6"></textarea> <input type="submit" /> </form> </section> </section> </section> <footer>TEST</footer> </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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214 @charset "utf-8"; /* CSS Document */ body { background-image:url(images/bg.jpg); height:1080px; background-attachment:fixed; } #encadre { background-color:#FFFFFF; margin-left:auto; margin-right:auto; /*-moz-border-radius:10px 10px 10px 10px; -webkit-border-radius:10px 10px 10px 10px; border-radius:10px 10px 10px 10px; -moz-box-shadow: 1px 1px 12px #b5b5b5; -webkit-box-shadow: 1px 1px 12px #b5b5b5; box-shadow: 1px 1px 12px #b5b5b5;*/ width:802px; overflow:hidden; background-color:#fbe6da; } header { background: -moz-linear-gradient(top, #fefbf9, #e4e1dc); background: -webkit-linear-gradient(top, #fefbf9, #e4e1dc); background: linear-gradient(top, #fefbf9, #e4e1dc); height:106px; width:802px; } footer { margin-left:auto; margin-right:auto; text-align:center; width:802px; } #centre { padding-left:40px; padding-right:40px; position:relative; z-index:1; } nav { position:absolute; z-index:2; } #hierarchie { width:285px; margin-top: 42px; } #hierarchie a { font-family:trebushet-ms; font-size:10px; color:#5a5746; } #hierarchie span:nth-child(2){ color:#d43219; font-size:10px; } #hierarchie span:nth-child(4){ color:#d43219; font-size:10px; } #hierarchie span:nth-child(5){ font-family:trebushet-ms; font-size:10px; color:#5a5746; } article h1 { border-left:2px solid #5c5646; border-bottom:2px solid #fbd476; font-family:trebushet-ms; font-size:18px; font-weight:bold; color:#d43219; padding-left:7px; padding-bottom:4px; } #bas h1 { border-left:2px solid #5c5646; border-bottom:2px solid #fbd476; font-family:trebushet-ms; font-size:18px; font-weight:bold; color:#d43219; padding-left:7px; padding-bottom:4px; } #bas h2 { font-family:Georgia, "Times New Roman", Times, serif; font-size:14px; font-weight:bold; color:#000000; } #bas p { font-family:trebushet-ms; font-size:12px; color:#000000; text-indent:3%; } #gauche { width:357px; float:left; } #gauche h2 { font-family:Georgia, "Times New Roman", Times, serif; font-size:14px; font-weight:bold; color:#000000; } #gauche p { font-family:trebushet-ms; font-size:12px; color:#000000; text-indent:5%; } aside { width:287px; float:left; padding-left:60px; } input[type="text"] { background: -moz-linear-gradient(top, #cbcbcb 0%, #fff 32%); background: -webkit-linear-gradient(top, #cbcbcb 0%, #fff 32%); background: linear-gradient(top, #cbcbcb 0%, #fff 32%); -moz-border-radius:10px 10px 10px 10px; -webkit-border-radius:10px 10px 10px 10px; border-radius:10px 10px 10px 10px; border:1px solid #cbcbcb; padding:7px; margin-bottom:10px; font-family:trebushet-ms; color:#f9bc24; font-size:16px; font-weight:bold; } input[type="email"] { background: -moz-linear-gradient(top, #cbcbcb 0%, #fff 32%); background: -webkit-linear-gradient(top, #cbcbcb 0%, #fff 32%); background: linear-gradient(top, #cbcbcb 0%, #fff 32%); -moz-border-radius:10px 10px 10px 10px; -webkit-border-radius:10px 10px 10px 10px; border-radius:10px 10px 10px 10px; border:1px solid #cbcbcb; padding:7px; margin-bottom:10px; font-family:trebushet-ms; color:#f9bc24; font-size:16px; font-weight:bold; } textarea { float:left; background: -moz-linear-gradient(top, #cbcbcb 0%, #fff 8%); background: -webkit-linear-gradient(top, #cbcbcb 0%, #fff 8%); background: linear-gradient(top, #cbcbcb 0%, #fff 8%); -moz-border-radius:10px 10px 10px 10px; -webkit-border-radius:10px 10px 10px 10px; border-radius:10px 10px 10px 10px; border:1px solid #cbcbcb; font-family:trebushet-ms; color:#f9bc24; font-size:16px; font-weight:bold; margin-left:30px; padding:7px; } input[type="submit"] { clear:both; float:right; -moz-border-radius:10px 10px 10px 10px; -webkit-border-radius:10px 10px 10px 10px; border-radius:10px 10px 10px 10px; background: -moz-linear-gradient(top, #e0663d, #aa3007); background: -webkit-linear-gradient(top, #e0663d, #aa3007); background: linear-gradient(top, #e0663d, #aa3007); border:1px solid #b73c14; padding:8px; width:103px; height:32px; color:#FFFFFF; font-weight:bold; margin-top:10px; margin-right:38px; margin-bottom:20px; }
et le css du menu :
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 nav ul { list-style:none; margin:0; padding:0; } nav ul li { float:left; } nav ul li:nth-child(1) { width:98px; } nav ul li:nth-child(3) { width:174px; } nav ul li:nth-child(5) { width:141px; } nav ul li:nth-child(7) { width:142px; } nav ul li:nth-child(9) { width:122px; } nav ul li:nth-child(11) { width:115px; } nav ul li:nth-child(1) a { color:white; background: -moz-linear-gradient(top, #df653c, #aa3007); background: -webkit-linear-gradient(top, #df653c, #aa3007); background: linear-gradient(top, #df653c, #aa3007); display:block; text-align:center; text-decoration:none; padding-top:4px; height:27px; } nav ul li:nth-child(3) a { color:white; background: -moz-linear-gradient(top, #df653c, #aa3007); background: -webkit-linear-gradient(top, #df653c, #aa3007); background: linear-gradient(top, #df653c, #aa3007); height:31px; text-align:center; display:block; text-decoration:none; padding-top:4px; height:27px; } nav ul li:nth-child(3) a:hover { color:#d43219; background:#f5bf38; } nav ul li:nth-child(5) a { color:white; background: -moz-linear-gradient(top, #df653c, #aa3007); background: -webkit-linear-gradient(top, #df653c, #aa3007); background: linear-gradient(top, #df653c, #aa3007); height:31px; text-align:center; display:block; text-decoration:none; padding-top:4px; height:27px; } nav ul li:nth-child(5) a:hover { color:#d43219; background:#f5bf38; } nav ul li:nth-child(7) a { color:white; background: -moz-linear-gradient(top, #df653c, #aa3007); background: -webkit-linear-gradient(top, #df653c, #aa3007); background: linear-gradient(top, #df653c, #aa3007); height:31px; text-align:center; display:block; text-decoration:none; padding-top:4px; height:27px; } nav ul li:nth-child(7) a:hover { color:#d43219; background:#f5bf38; } nav ul li:nth-child(9) a { color:white; background: -moz-linear-gradient(top, #df653c, #aa3007); background: -webkit-linear-gradient(top, #df653c, #aa3007); background: linear-gradient(top, #df653c, #aa3007); height:31px; text-align:center; display:block; text-decoration:none; padding-top:4px; height:27px; } nav ul li:nth-child(9) a:hover { color:#d43219; background:#f5bf38; } nav ul li:nth-child(11) a { color:white; background: -moz-linear-gradient(top, #df653c, #aa3007); background: -webkit-linear-gradient(top, #df653c, #aa3007); background: linear-gradient(top, #df653c, #aa3007); height:31px; text-align:center; display:block; text-decoration:none; padding-top:4px; height:27px; } nav ul li:nth-child(11) a:hover { color:#d43219; background:#f5bf38; } nav ul li ul { display:none; width:200px; } nav li:nth-child(3) li { width:200px; } nav li:nth-child(5) li { width:200px; } nav li:nth-child(7) li { width:200px; } nav li:nth-child(9) li { width:200px; } nav li:nth-child(11) li { width:200px; } /*nav ul li ul:nth-of-type(3){ width:200px; } nav ul li ul li:nth-of-type(3){ width:200px; }*/ nav ul li ul li { width:200px; background-color:#D43219; color:#fff; } nav ul li ul { width:200px; } nav ul li:hover ul { display:block; }
et responsive.ccs (j'ai pas encore fait pour les smartphones)
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
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 @charset "utf-8"; /* CSS Document */ @media screen and (max-width: 1000px) { html { height:100%; } body { width: 100%; height:100%; background-color:#000000; } #centre { width:100%; padding-left:0px; padding-right:0px; } #gauche { width:100%; height:auto; } article { width:100%; height:auto; } article h1 { width:100%; height:auto; } aside { width:100%; height:auto; float:none; padding-left:0px; } #hierarchie { width:100%; height:auto; clear:both; display:block; } textarea { margin-left:0px; width:auto; } #encadre { width:100%; height:auto; } nav { width:100%; height:auto; float:none; position:inherit; } nav ul li:nth-child(1) { width:90%; height:auto; float:none; } nav ul li:nth-child(3) { width:90%; height:auto; float:none; } nav ul li:nth-child(5) { width:90%; height:auto; float:none; } nav ul li:nth-child(7) { width:90%; height:auto; float:none; } nav ul li:nth-child(9) { width:90%; height:auto; float:none; } nav ul li:nth-child(11) { width:90%; height:auto; float:none; } #menu { width:100%; height:auto; float:none; } img{ width:100%; height:auto; } iframe { width:100%; height:auto; } input[type="text"] { width:70%; height:auto; } input[type="email"] { width:70%; height:auto; } textarea { max-width:70%; height:auto; } nav ul li:hover ul { display:none; } header { display:none; } } @media screen and (min-width: 791) and (max-width: 1299px) { html { height:100%; } body { width: 100%; height:100%; background-color:#000000; } #centre { width:100%; padding-left:0px; padding-right:0px; } #gauche { width:100%; height:auto; } article { width:100%; height:auto; } article h1 { width:100%; height:auto; } aside { width:100%; height:auto; float:none; padding-left:0px; } #hierarchie { width:100%; height:auto; clear:both; display:block; } textarea { margin-left:0px; width:auto; } #encadre { width:100%; height:auto; } nav { width:100%; height:auto; float:none; display:block; } img{ width:100%; height:auto; } iframe { width:100%; height:auto; } input[type="text"] { width:70%; height:auto; } input[type="email"] { width:70%; height:auto; } textarea { width:70%; height:auto; } } @media screen and (min-device-width:200px) and (max-device-width:450px){ html { height:100%; margin:0; padding:0; } body { width: 100%; height:100%; background-color:#000000; } header { display:none; } article { width:100%; height:auto; font-size:200%; } article h1 { width:100%; height:auto; } aside { width:100%; height:auto; display:block; } #hierarchie { width:100%; height:auto; clear:both; display:block; } textarea { margin-left:0px; width:auto; float:none; } input[type="submit"] { clear:both; float:left; } #encadre { width:100%; height:auto; } nav ul li { clear:both; height:auto; float:none; margin:0; padding:0; background-color:#000000; color:#FFFFFF; } nav ul li:hover ul { display:none; } nav { margin:0; padding:0; } }
Merci de me faire des bonnes ou des mauvaises remarques afin que je puisse progresser
![]()
Partager