質問するログイン新規登録

質問編集履歴

1

コードを全て書き直しました。

2021/11/02 05:38

投稿

misaki.
misaki.

スコア3

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