回答編集履歴
1
解説を追加
answer
CHANGED
@@ -26,4 +26,9 @@
|
|
26
26
|
font-family: 'Georgia';
|
27
27
|
color: #4682b4;
|
28
28
|
}
|
29
|
-
```
|
29
|
+
```
|
30
|
+
解説
|
31
|
+
700x700の#clock-containerブロックを作ってimgとpを収容します。
|
32
|
+
imgは700x700なので#clock-containerにぴったりフィットします。(なので特に配置の指定も不要)
|
33
|
+
pは(topとleftで)#clock-container内の決まった位置に配置します。(position: absolute)
|
34
|
+
こうすればimgとpの位置がずれることはなくなるわけです。
|