-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
48 lines (43 loc) · 1.06 KB
/
style.css
File metadata and controls
48 lines (43 loc) · 1.06 KB
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
/* Set height to 100% for body and html to enable the background image to cover the whole page: */
body, html {
height: 100%
}
.bgimg {
/* Background image */
background: url('background.png') no-repeat center;
/* Full-screen */
height: 100%;
/* Center the background image */
/* Scale and zoom in the image */
background-size: auto;
/* 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: GREY;
/* Add a font */
font-family: "Courier New", Courier, monospace;
}
/* Position text in the top-left corner */
.topleft {
position: absolute;
top: 0;
left: 12px;
}
/* Position text in the bottom-left corner */
.bottomleft {
position: absolute;
bottom: 0;
left: 12px;
}
/* Position text in the middle */
.middle {
position: absolute;
top: 15%;
left: 15%;
text-align: left
}
/* Style the <hr> element */
hr {
margin: auto;
width: 30%;
}