回答編集履歴
1
スマホ表示時のことを追記しました
answer
CHANGED
@@ -17,4 +17,16 @@
|
|
17
17
|
}
|
18
18
|
```
|
19
19
|
|
20
|
-
[https://developer.mozilla.org/ja/docs/Web/CSS/flex-direction](https://developer.mozilla.org/ja/docs/Web/CSS/flex-direction)
|
20
|
+
[https://developer.mozilla.org/ja/docs/Web/CSS/flex-direction](https://developer.mozilla.org/ja/docs/Web/CSS/flex-direction)
|
21
|
+
|
22
|
+
|
23
|
+
逆に`flex-direction: column;`をかけると縦並びになるので、画面幅が狭い時に縦並びにしたい場合は、`.container-two`と`.hosting-chapter`に`flex-direction: column;`をかけてください。
|
24
|
+
※HTMLの構成が変わっていない前提です。
|
25
|
+
|
26
|
+
```CSS
|
27
|
+
@media screen and (max-width: 744px) {
|
28
|
+
.container-two, .hosting-chapter {
|
29
|
+
flex-direction: column;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
```
|