-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.html
More file actions
executable file
·55 lines (44 loc) · 1.17 KB
/
header.html
File metadata and controls
executable file
·55 lines (44 loc) · 1.17 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
49
50
51
52
53
54
<style>
.parallax {
/* The image used */
/* background-image: url("http://calumwebb.uk/img/web_copy_swings_photo.png"); */
background-image: url("https://raw.githubusercontent.com/cjrwebb/calumwebb/main/img_host/cwip_illustration.png");
/* Set a specific height */
height: 300px;
width: 100%;
/* Create the parallax scrolling effect */
/* background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover; */
background-attachment: fixed;
background-position: center;
background-position-y: -45vh;
background-size: cover;
background-repeat: no-repeat;
height: 30vh;
justify-content: center;
align-items: center;
}
.myimg{
width: 30%;
position: absolute;
top: 20vh;
left: 65%;
}
.mytitle{
width: 50%;
position: absolute;
top: 1vh;
left: 5%;
height: 50px;
color: #fff;
}
</style>
<!-- Container element -->
<div class="parallax">
<img class="myimg" src="https://raw.githubusercontent.com/cjrwebb/calumwebb/main/img_host/cwip-app-logo-outline.png">
</div>
<div class="parallax">
<h3 class="mytitle">Version 2.22</h3>
</div>