質問編集履歴

1

コードを短くまとめ、分からないことを追加しました。

2020/04/26 08:45

投稿

Garu-san
Garu-san

スコア13

test CHANGED
File without changes
test CHANGED
@@ -8,6 +8,16 @@
8
8
 
9
9
  にレイアウトしたい。
10
10
 
11
+
12
+
13
+ <分からないこと>
14
+
15
+ メディアクエリでFlexboxを用いたレイアウト
16
+
17
+
18
+
19
+
20
+
11
21
  <用件>
12
22
 
13
23
  - ブレークポイントは以下の5つを設定。(最小設定は320px)
@@ -24,9 +34,327 @@
24
34
 
25
35
 
26
36
 
37
+
38
+
39
+ Middle section
40
+
41
+ ```HTML
42
+
43
+ <!-- middle section start -->
44
+
45
+ <section class="middle-section-wrapper">
46
+
47
+ <div class="full-width-container">
48
+
49
+ <div class="row middle-columns">
50
+
51
+ <div class="bg-shose column-4">
52
+
53
+ </div>
54
+
55
+ <div class="column-4">
56
+
57
+ <div class="middle-column-content">
58
+
59
+ <h3>MIDDLE COLUMUN</h3>
60
+
27
- <Code>
61
+ <h2>
62
+
28
-
63
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit,
64
+
65
+ </h2>
66
+
67
+ <p>
68
+
69
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
70
+
71
+ magna
72
+
73
+ aliqua.
74
+
75
+ </p>
76
+
77
+ </div>
78
+
79
+ </div>
80
+
81
+ <div class="bg-sunglasses column-4">
82
+
83
+ </div>
84
+
85
+ </div>
86
+
87
+ </div>
88
+
89
+ <div class="full-width-container">
90
+
91
+ <div class="row middle-columns">
92
+
93
+ <div class="column-4">
94
+
95
+ <div class="middle-column-content">
96
+
97
+ <h3>MIDDLE COLUMUN</h3>
98
+
99
+ <h2>
100
+
101
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit,
102
+
103
+ </h2>
104
+
105
+ <p>
106
+
107
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
108
+
109
+ magna
110
+
111
+ aliqua.
112
+
113
+ </p>
114
+
115
+ </div>
116
+
117
+ </div>
118
+
119
+ <div class="bg-guy-with-cap column-4">
120
+
121
+ </div>
122
+
123
+ <div class="column-4">
124
+
125
+ <div class="middle-column-content">
126
+
127
+ <h3>MIDDLE COLUMUN</h3>
128
+
129
+ <h2>
130
+
131
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit,
132
+
133
+ </h2>
134
+
135
+ <p>
136
+
137
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
138
+
139
+ magna
140
+
141
+ aliqua.
142
+
143
+ </p>
144
+
145
+ </div>
146
+
147
+ </div>
148
+
149
+ </div>
150
+
151
+ </div>
152
+
153
+ </section>
154
+
155
+ <!-- middle section end -->
156
+
157
+ ```
158
+
159
+
160
+
161
+
162
+
163
+ Bottom seciton
164
+
165
+ ```HTML
166
+
167
+ <!-- bottom section start -->
168
+
169
+ <section class="bottom-section-wrapper">
170
+
171
+ <div class="container">
172
+
173
+ <div class="row">
174
+
175
+ <div class="column-12">
176
+
177
+ <h2 class="bottom-section-title">BOTTOM SECTION</h2>
178
+
179
+ </div>
180
+
181
+ </div>
182
+
183
+ <div class="row">
184
+
185
+ <div class="column-6">
186
+
29
- https://github.com/kennyatman/Lesson-correction.git
187
+ <img src="./images/nick-karvounis-261181.jpg" alt="bottom-section-img" />
188
+
189
+ </div>
190
+
191
+ <div class="column-6">
192
+
193
+ <div class="bottom-section-content-wrapper">
194
+
195
+ <h2>SECTION TITLE</h2>
196
+
197
+ <p>
198
+
199
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
200
+
201
+ aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
202
+
203
+ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
204
+
205
+ occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
206
+
207
+ </p>
208
+
209
+ </div>
210
+
211
+ </div>
212
+
213
+ </div>
214
+
215
+ <div class="row">
216
+
217
+ <div class="column-6">
218
+
219
+ <div class="bottom-section-content-wrapper">
220
+
221
+ <h2>SECTION TITLE</h2>
222
+
223
+ <p>
224
+
225
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
226
+
227
+ aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
228
+
229
+ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
230
+
231
+ occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
232
+
233
+ </p>
234
+
235
+ </div>
236
+
237
+ </div>
238
+
239
+ <div class="column-6">
240
+
241
+ <img src="./images/kristian-egelund-476932.jpg" alt="bottom-section-img" />
242
+
243
+ </div>
244
+
245
+ </div>
246
+
247
+ </div>
248
+
249
+ </section>
250
+
251
+ <!-- bottom section end -->
252
+
253
+ ```
254
+
255
+
256
+
257
+ メディアクエリ部分
258
+
259
+ ```CSS
260
+
261
+ @media (min-width: 320px) {
262
+
263
+ .top-main h1 {
264
+
265
+ font-size: 40px;
266
+
267
+ }
268
+
269
+
270
+
271
+ .top-main h2 {
272
+
273
+ font-size: 30px;
274
+
275
+ }
276
+
277
+
278
+
279
+ .top-main p {
280
+
281
+ text-align: center;
282
+
283
+ font-size: 15px;
284
+
285
+ padding: 15px;
286
+
287
+ margin: 0 auto;
288
+
289
+ }
290
+
291
+
292
+
293
+ ** .column-4 { /* middle-sectionを6個のコンテンツを縦6列に並べたいができない */
294
+
295
+ display: flex;
296
+
297
+ flex-direction: column;
298
+
299
+ }**
300
+
301
+
302
+
303
+ }
304
+
305
+
306
+
307
+ @media (min-width: 480px) {
308
+
309
+ .top-main h1 {
310
+
311
+ font-size: ;
312
+
313
+ }
314
+
315
+ }
316
+
317
+
318
+
319
+ @media (min-width: 768px) {
320
+
321
+ .top-main h1 {
322
+
323
+ font-size: ;
324
+
325
+ }
326
+
327
+ }
328
+
329
+
330
+
331
+ @media (min-width: 992px) {
332
+
333
+ .top-main h1 {
334
+
335
+ font-size: ;
336
+
337
+ }
338
+
339
+ }
340
+
341
+
342
+
343
+ @media (min-width: 1100px) {
344
+
345
+ .top-main h1 {
346
+
347
+ font-size: ;
348
+
349
+ }
350
+
351
+ }
352
+
353
+ ```
354
+
355
+
356
+
357
+
30
358
 
31
359
 
32
360