質問編集履歴
1
コードを全て書き直しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,72 +7,90 @@
|
|
7
7
|

|
8
8
|
|
9
9
|
```HTML
|
10
|
-
<
|
10
|
+
<body>
|
11
|
-
|
11
|
+
<section id="bicycle" class="wrapper">
|
12
|
-
|
12
|
+
<h2 class="section-title">Bicycle</h2>
|
13
|
-
|
13
|
+
<ul>
|
14
|
-
|
14
|
+
<li>
|
15
|
-
|
15
|
+
<img src="http://placehold.jp/150x150.png" alt="テキストテキストテキスト">
|
16
|
-
|
16
|
+
<h3 class="content-title">タイトルタイトル</h3>
|
17
|
-
|
17
|
+
<p>テキストテキストテキスト</p>
|
18
|
-
|
18
|
+
</li>
|
19
|
-
|
19
|
+
<li>
|
20
|
-
|
20
|
+
<img src="http://placehold.jp/150x150.png" alt="テキストテキストテキスト">
|
21
|
-
|
21
|
+
<h3 class="content-title">タイトルタイトル</h3>
|
22
|
-
|
22
|
+
<p>テキストテキストテキスト</p>
|
23
|
-
|
23
|
+
</li>
|
24
|
-
|
24
|
+
<li>
|
25
|
-
|
25
|
+
<img src="http://placehold.jp/150x150.png" alt="テキストテキストテキスト">
|
26
|
-
|
26
|
+
<h3 class="content-title">タイトルタイトル</h3>
|
27
|
-
|
27
|
+
<p>テキストテキストテキスト</p>
|
28
|
-
|
28
|
+
</li>
|
29
|
-
|
29
|
+
</ul>
|
30
|
-
|
31
|
-
|
30
|
+
</section>
|
31
|
+
</main>
|
32
|
+
|
33
|
+
|
34
|
+
</body>
|
35
|
+
</html>
|
32
36
|
```
|
33
37
|
```css
|
34
38
|
|
35
|
-
|
39
|
+
*{
|
36
|
-
|
40
|
+
margin: 0;
|
37
|
-
margin: 0 auto 100px auto;
|
38
|
-
padding: 0
|
41
|
+
padding: 0;
|
39
|
-
text-align: center;
|
40
42
|
}
|
43
|
+
|
44
|
+
a {
|
45
|
+
text-decoration: none;
|
46
|
+
}
|
41
47
|
img {
|
42
|
-
|
48
|
+
max-width: 100%;
|
43
49
|
}
|
50
|
+
li {
|
51
|
+
list-style: none;
|
52
|
+
}
|
44
53
|
|
45
54
|
.section-title {
|
46
|
-
|
55
|
+
display: inline-block;
|
47
|
-
|
56
|
+
font-size: 2rem;
|
48
|
-
|
57
|
+
text-align: center;
|
49
|
-
|
58
|
+
margin-bottom: 60px;
|
50
|
-
|
59
|
+
border-bottom: solid 1px #383e45;
|
51
|
-
|
60
|
+
}
|
52
61
|
|
62
|
+
.wrapper {
|
63
|
+
max-width: 960px;
|
64
|
+
margin: 0 auto 100px auto;
|
65
|
+
padding: 0 4%;
|
66
|
+
text-align: center;
|
67
|
+
}
|
53
68
|
|
54
69
|
.content-title {
|
55
|
-
|
70
|
+
font-size: 1rem;
|
56
|
-
|
71
|
+
margin: 10px 0;
|
57
|
-
|
72
|
+
}
|
58
73
|
|
59
|
-
|
74
|
+
#bicycle ul {
|
60
|
-
|
75
|
+
display: flex;
|
61
|
-
|
76
|
+
justify-content: space-between;
|
62
|
-
|
77
|
+
}
|
78
|
+
#bicycle li {
|
79
|
+
width: 32%;
|
80
|
+
}
|
63
81
|
|
64
|
-
#bicycle ul {
|
65
|
-
display: flex;
|
66
|
-
justify-content: space-between;
|
67
|
-
}
|
68
82
|
|
69
|
-
|
83
|
+
@media screen and (max-width: 600px){
|
70
|
-
width: 32%;
|
71
|
-
}
|
72
84
|
|
73
|
-
|
85
|
+
|
86
|
+
|
74
|
-
|
87
|
+
#bicycle ul {
|
75
|
-
|
88
|
+
flex-direction: column;
|
89
|
+
}
|
90
|
+
#bicycle li {
|
91
|
+
width: 100%;
|
76
|
-
|
92
|
+
margin-bottom: 30px;
|
77
|
-
|
93
|
+
}
|
94
|
+
|
95
|
+
}
|
78
96
|
```
|