質問編集履歴
1
cssのコードを追加、現象のssを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
### 前提・実現したいこと
|
1
|
+
![イメージ説明]### 前提・実現したいこと
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
-
html及びcss
|
5
|
+
html及びcssを練習しています。
|
6
6
|
|
7
7
|
そこで<h>を使用した際中の文字が中央によってしまいます。
|
8
8
|
|
@@ -30,9 +30,99 @@
|
|
30
30
|
|
31
31
|
```ここに言語名を入力
|
32
32
|
|
33
|
+
<html>
|
34
|
+
|
35
|
+
<!DOCTYPE html>
|
36
|
+
|
37
|
+
<html>
|
38
|
+
|
39
|
+
<head>
|
40
|
+
|
41
|
+
<meta charset="utf-8">
|
42
|
+
|
43
|
+
<title>Progate</title>
|
44
|
+
|
45
|
+
<link rel="stylesheet" href="stylesheet.css">
|
46
|
+
|
47
|
+
</head>
|
48
|
+
|
49
|
+
<body>
|
50
|
+
|
51
|
+
<!-- ここからHTMLを書き始めてください -->
|
52
|
+
|
53
|
+
<div class="header">
|
54
|
+
|
55
|
+
<h1 class="header-title">Progate</h1>
|
56
|
+
|
57
|
+
<ul>
|
58
|
+
|
59
|
+
<li>プログラミングとは</li>
|
60
|
+
|
61
|
+
<li>学べるレッスン</li>
|
62
|
+
|
63
|
+
<li>お問い合わせ</li>
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
</ul>
|
68
|
+
|
69
|
+
</div>
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
<div class="main">
|
74
|
+
|
75
|
+
<h1>HELLOWORLD<span>.</span></h1>
|
76
|
+
|
77
|
+
<h2>プログラミングの世界へようこそ</h2>
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
<div class="contents">
|
84
|
+
|
85
|
+
<h3 class="contents-title">学べるレッスン</h3>
|
86
|
+
|
87
|
+
<div class="contents-pic">
|
88
|
+
|
89
|
+
<img src="https://s3-ap-northeast-1.amazonaws.com/progate/shared/images/lesson/html/study/html.svg" alt="" />
|
90
|
+
|
91
|
+
<p class="contents-mokuji">HTML</p>
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
<div class="contents-pic">
|
96
|
+
|
97
|
+
<img src="https://s3-ap-northeast-1.amazonaws.com/progate/shared/images/lesson/html/study/php.svg" alt="" />
|
98
|
+
|
99
|
+
<p class="contents-mokuji">PHP</p>
|
100
|
+
|
101
|
+
</div>
|
102
|
+
|
103
|
+
<div class="contents-pic">
|
104
|
+
|
105
|
+
<img src="https://s3-ap-northeast-1.amazonaws.com/progate/shared/images/lesson/html/study/ruby.svg" alt="" />
|
106
|
+
|
107
|
+
<p class="contents-mokuji">Ruby</p>
|
108
|
+
|
109
|
+
</div>
|
110
|
+
|
111
|
+
<div class="contents-pic">
|
112
|
+
|
113
|
+
<img src="https://s3-ap-northeast-1.amazonaws.com/progate/shared/images/lesson/html/study/swift.svg" alt="" />
|
114
|
+
|
115
|
+
<p class="contents-mokuji">Swift</p>
|
116
|
+
|
117
|
+
</div>
|
118
|
+
|
119
|
+
</div>
|
120
|
+
|
121
|
+
|
122
|
+
|
33
|
-
<div class="form">
|
123
|
+
<div class="form">
|
34
|
-
|
124
|
+
|
35
|
-
<h4 class="
|
125
|
+
<h4 class="form-title">お問い合わせ</h4>
|
36
126
|
|
37
127
|
<p class="contents-list">メールアドレス(必須)</p>
|
38
128
|
|
@@ -50,6 +140,248 @@
|
|
50
140
|
|
51
141
|
</div>
|
52
142
|
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
</div>
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
</body>
|
152
|
+
|
153
|
+
</html>
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
<css>
|
158
|
+
|
159
|
+
/* CSSのリセット(消さないでください) */
|
160
|
+
|
161
|
+
html, body,
|
162
|
+
|
163
|
+
ul, ol, li,
|
164
|
+
|
165
|
+
h1, h2, h3, h4, h5, h6, p,
|
166
|
+
|
167
|
+
form, input, div {
|
168
|
+
|
169
|
+
margin: 0;
|
170
|
+
|
171
|
+
padding: 0;
|
172
|
+
|
173
|
+
}
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
li {
|
178
|
+
|
179
|
+
list-style: none;
|
180
|
+
|
181
|
+
}
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
body{
|
186
|
+
|
187
|
+
font-family:"Avenir Next","Hiragino Kaku Gothic ProN W3",sans-serif;
|
188
|
+
|
189
|
+
}
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
/* ここからCSSを記述してください */
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
.header{
|
198
|
+
|
199
|
+
background-color:#26d0c9;
|
200
|
+
|
201
|
+
height:90px;
|
202
|
+
|
203
|
+
color:white;
|
204
|
+
|
205
|
+
}
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
.header-title{
|
210
|
+
|
211
|
+
font-size:36px;
|
212
|
+
|
213
|
+
padding:20px 40px;
|
214
|
+
|
215
|
+
float:left;
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
}
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
.header li{
|
224
|
+
|
225
|
+
float:left;
|
226
|
+
|
227
|
+
font-size:20px;
|
228
|
+
|
229
|
+
padding:33px 20px;
|
230
|
+
|
231
|
+
}
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
.main{
|
236
|
+
|
237
|
+
float:left;
|
238
|
+
|
239
|
+
padding-left:80px;
|
240
|
+
|
241
|
+
}
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
.main h1{
|
246
|
+
|
247
|
+
font-size:140px;
|
248
|
+
|
249
|
+
padding-top:100px;
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
}
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
.main span{
|
258
|
+
|
259
|
+
color:red;
|
260
|
+
|
261
|
+
}
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
.main h2{
|
266
|
+
|
267
|
+
font-size:60px;
|
268
|
+
|
269
|
+
}
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
.contents{
|
274
|
+
|
275
|
+
height:500px;
|
276
|
+
|
277
|
+
}
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
.contents-title{
|
282
|
+
|
283
|
+
font-size:28px;
|
284
|
+
|
285
|
+
padding-top:100px;
|
286
|
+
|
287
|
+
padding-bottom:15px;
|
288
|
+
|
289
|
+
border-bottom:solid 2px #dee7ec;
|
290
|
+
|
291
|
+
margin-bottom:50px;
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
}
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
.contents-pic{
|
300
|
+
|
301
|
+
float:left;
|
302
|
+
|
303
|
+
padding-right:40px;
|
304
|
+
|
305
|
+
}
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
.contents-mokuji{
|
310
|
+
|
311
|
+
padding-top:30px;
|
312
|
+
|
313
|
+
font-size:24px;
|
314
|
+
|
315
|
+
padding-bottom:100px;
|
316
|
+
|
317
|
+
}
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
.form{
|
322
|
+
|
323
|
+
margin-bottom:100px;
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
}
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
.form-title{
|
332
|
+
|
333
|
+
font-size:28px;
|
334
|
+
|
335
|
+
padding-top:100px;
|
336
|
+
|
337
|
+
padding-bottom:15px;
|
338
|
+
|
339
|
+
border-bottom:solid 2px #dee7ec;
|
340
|
+
|
341
|
+
margin-bottom:50px;
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
}
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
input,textarea{
|
352
|
+
|
353
|
+
padding:20px;
|
354
|
+
|
355
|
+
margin-bottom:30px;
|
356
|
+
|
357
|
+
width:400px;
|
358
|
+
|
359
|
+
border:1px #dee7ec solid;
|
360
|
+
|
361
|
+
}
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
.contents-list{
|
366
|
+
|
367
|
+
margin-bottom:10px;
|
368
|
+
|
369
|
+
}
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
.button{
|
374
|
+
|
375
|
+
color:#889ead;
|
376
|
+
|
377
|
+
font-size:18px;
|
378
|
+
|
379
|
+
background-color:#dee7ec;
|
380
|
+
|
381
|
+
}
|
382
|
+
|
383
|
+
|
384
|
+
|
53
385
|
```
|
54
386
|
|
55
387
|
|
@@ -68,4 +400,4 @@
|
|
68
400
|
|
69
401
|
|
70
402
|
|
71
|
-
|
403
|
+
![イメージ説明](7e18ffaa031625e334077f81860db20b.png)
|