We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21fdd98 commit bdc6294Copy full SHA for bdc6294
project-10-digital-clock/style.css
@@ -7,6 +7,7 @@ body {
7
justify-content: center;
8
font-family: sans-serif;
9
background: url("./bg_pic.jpg");
10
+ background-size: cover;
11
}
12
13
h2 {
@@ -22,6 +23,7 @@ h2 {
22
23
24
.clock div {
25
margin: 5px;
26
+ position: relative;
27
28
29
.clock span {
@@ -36,3 +38,23 @@ h2 {
36
38
font-size: 48px;
37
39
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
40
41
+
42
+.clock .text {
43
+ height: 36px;
44
+ font-size: 12px;
45
+ text-transform: uppercase;
46
+ letter-spacing: 2px;
47
+ background-color: darkred;
48
+ opacity: 0.8;
49
+}
50
51
+.clock #am-pm {
52
+ position: absolute;
53
+ bottom: 0;
54
+ width: 60px;
55
56
+ font-size: 18px;
57
+ background-color: red;
58
+ opacity: 0.9;
59
+ border-radius: 5px;
60
0 commit comments