回答編集履歴
3
補足の追加。
answer
CHANGED
@@ -18,5 +18,7 @@
|
|
18
18
|
}
|
19
19
|
```
|
20
20
|
|
21
|
+
---
|
22
|
+
|
21
23
|
【position: absolute; の指定で要素が上下左右中央配置になる理由 | WWW WATCH】
|
22
24
|
[https://hyper-text.org/archives/2014/08/position_absolute_center_layout.shtml](https://hyper-text.org/archives/2014/08/position_absolute_center_layout.shtml)
|
2
補足の追加。
answer
CHANGED
@@ -16,4 +16,7 @@
|
|
16
16
|
left: 50%;
|
17
17
|
transform: translate( -50%, -50% );
|
18
18
|
}
|
19
|
-
```
|
19
|
+
```
|
20
|
+
|
21
|
+
【position: absolute; の指定で要素が上下左右中央配置になる理由 | WWW WATCH】
|
22
|
+
[https://hyper-text.org/archives/2014/08/position_absolute_center_layout.shtml](https://hyper-text.org/archives/2014/08/position_absolute_center_layout.shtml)
|
1
ミスがあったため修正。
answer
CHANGED
@@ -14,7 +14,6 @@
|
|
14
14
|
position: absolute;
|
15
15
|
top: 50%;
|
16
16
|
left: 50%;
|
17
|
-
background-color: red;
|
18
17
|
transform: translate( -50%, -50% );
|
19
18
|
}
|
20
19
|
```
|