Skip to content

Commit 21fdd98

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

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

project-10-digital-clock/style.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,34 @@ body {
55
align-items: center;
66
height: 100vh;
77
justify-content: center;
8+
font-family: sans-serif;
89
background: url("./bg_pic.jpg");
910
}
1011

1112
h2 {
1213
text-transform: uppercase;
1314
letter-spacing: 4px;
14-
font-size: 14px;
15+
font-size: 2rem;
1516
text-align: center;
1617
}
1718

1819
.clock {
1920
display: flex;
2021
}
22+
23+
.clock div {
24+
margin: 5px;
25+
}
26+
27+
.clock span {
28+
display: flex;
29+
width: 100px;
30+
height: 80px;
31+
background-color: red;
32+
color: white;
33+
opacity: 0.9;
34+
justify-content: center;
35+
align-items: center;
36+
font-size: 48px;
37+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
38+
}

0 commit comments

Comments
 (0)