回答編集履歴

2

プロパティを変更

2018/04/18 03:52

投稿

Atsushi_Okumura
Atsushi_Okumura

スコア355

test CHANGED
@@ -6,15 +6,27 @@
6
6
 
7
7
  display: flex;
8
8
 
9
- flex-wrap: wrap;
9
+ flex-direction: column;
10
10
 
11
11
  justify-content: center;
12
12
 
13
- align-content: center;
13
+ align-items: center;
14
14
 
15
15
  }
16
16
 
17
17
  ```
18
+
19
+ flex-wrap: wrap; を flex-direction: column;
20
+
21
+ align-content: center; を align-items: center;
22
+
23
+ に修正しました。
24
+
25
+
26
+
27
+ コレだと<br>が無くとも縦一列になります。
28
+
29
+
18
30
 
19
31
  参考:[http://frontenddaily.work/flex/801](http://frontenddaily.work/flex/801)
20
32
 

1

codepen追加

2018/04/18 03:51

投稿

Atsushi_Okumura
Atsushi_Okumura

スコア355

test CHANGED
@@ -17,3 +17,7 @@
17
17
  ```
18
18
 
19
19
  参考:[http://frontenddaily.work/flex/801](http://frontenddaily.work/flex/801)
20
+
21
+ codepenで確認する↓
22
+
23
+ [https://codepen.io/RaRukAnA/pen/erYYXq](https://codepen.io/RaRukAnA/pen/erYYXq)