-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
77 lines (72 loc) · 1.75 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/* Set height to 100% for body and html to enable the background image to cover the whole page: */
body,
html {
height: 100%;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
}
.bgimg {
/* Background image */
background-image: url("https://static.pexels.com/photos/214238/pexels-photo-214238.jpeg");
/* Full-screen */
height: 100%;
/* Center the background image */
background-position: center;
/* Scale and zoom in the image */
background-size: cover;
/* Add position: relative to enable absolutely positioned elements inside the image (place text) */
position: relative;
/* Add a white text color to all elements inside the .bgimg container */
color: white;
/* Add a font */
font-family: "Courier New", Courier, monospace;
/* Set the font-size to 25 pixels */
font-size: 25px;
font-weight: bold;
}
/* Position text in the top-left corner */
.toptext {
position: absolute;
top: 90%;
left: 50%;
transform: translate(-50%, -50%);
top: 10%;
color: black;
font-family: "East Sea Dokdo", cursive;
font-size: 30px;
text-align: center;
}
/* Position text in the bottom-left corner */
.bottomtext {
position: absolute;
top: 90%;
left: 50%;
transform: translate(-50%, -50%);
color: black;
font-family: "East Sea Dokdo", cursive;
font-size: 30px;
text-align: center;
}
/* Position text in the middle */
.middle {
position: absolute;
width: 400px;
height: 375px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
background-color: rgba(0, 128, 0, 0.4);
border-style: dotted;
border-width: 2px;
border-color: grey;
border-radius: 10px;
font-family: "Mountains of Christmas", cursive;
font-size: 30px;
}
/* Style the <hr> element */
hr {
margin: auto;
width: 40%;
}