Skip to content

Commit bdc6294

Browse files
Update style.css
1 parent 21fdd98 commit bdc6294

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

project-10-digital-clock/style.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ body {
77
justify-content: center;
88
font-family: sans-serif;
99
background: url("./bg_pic.jpg");
10+
background-size: cover;
1011
}
1112

1213
h2 {
@@ -22,6 +23,7 @@ h2 {
2223

2324
.clock div {
2425
margin: 5px;
26+
position: relative;
2527
}
2628

2729
.clock span {
@@ -36,3 +38,23 @@ h2 {
3638
font-size: 48px;
3739
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
3840
}
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+
height: 36px;
56+
font-size: 18px;
57+
background-color: red;
58+
opacity: 0.9;
59+
border-radius: 5px;
60+
}

0 commit comments

Comments
 (0)