-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackground-test.html
More file actions
42 lines (40 loc) · 860 Bytes
/
background-test.html
File metadata and controls
42 lines (40 loc) · 860 Bytes
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
<!DOCTYPE html>
<html>
<head>
<style>
html, body {
margin: 0;
padding: 0;
overflow: hidden;
}
.image-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.image {
max-width: 100%;
max-height: 100%;
}
p:hover {
color: red;
}
</style>
</head>
<body>
<div class="image-container" style="background-color: #799;">
<p>TEST</p>
<br>
<p>TEST</p>
<br>
<p>TEST</p>
<!--<img class="image" src="your-image-url.jpg" alt="Background Image">-->
</div>
</body>
</html>