-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpositioning.css
More file actions
42 lines (36 loc) · 808 Bytes
/
positioning.css
File metadata and controls
42 lines (36 loc) · 808 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
nav {
position: sticky;
top: -1px;
}
nav a:active {
color: cadetblue;
}
/* nav a:nth-child(1):before {
content: "🥁";
} */
.hero {
background-color: darkolivegreen;
position: relative;
/* background: radial-gradient(white, black); */
height: 50vh;
/* background-image: url("liteSkog.jpg"); */
/* background-image: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSa4zQlidmdhTc3MhvRU8wn0TE0zR4Ik3p8Bw&usqp=CAU");
background-repeat: no-repeat;
background-position: center;
background-size: contain; */
}
.hero h2 {
position: relative;
z-index: 10;
text-align: center;
font-size: 50px;
height: 100%;
background: linear-gradient(transparent, darkmagenta);
}
.hero-img {
position: absolute;
top: 0;
width: 100%;
height: 100%;
object-fit: cover;
}