-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgif.html
More file actions
26 lines (24 loc) · 713 Bytes
/
gif.html
File metadata and controls
26 lines (24 loc) · 713 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.element {
background-image: url('CENTRE.gif');
background-size: cover;
background-position: center;
width: 600px;
height: 400px;
position: absolute;
top: 50%; /* Position it vertically in the center */
right: 0; /* Position it on the right side */
transform: translateY(-50%); /* Adjust for exact vertical centering */
}
</style>
</head>
<body>
<div class="element"></div>
</body>
</html>