blob: 695be8b7432b1a09c3f55340e3e9e5304d6a7e4f (
plain) (
blame)
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
|
/*
Student Name: Name Surname
Date: 2024/12/01
File Name: styles.css
*/
.hero{
background-image: linear-gradient(rgba(255, 255, 255, 0.5),
rgba(255, 255, 255, 0.5)),url(../images/baby-hawk.jpg);
background-size: cover;
background-repeat: no-repeat;
background-position: right;
}
.welcome{
position: absolute;
top: 40%;
}
.display-1{
font-size: 4em;
}
.bg-brown{
background-color: #2A1F14;
}
/* Media Query for Tablet Viewport */
@media (min-width: 768px) {
.welcome {
top: 20%;
left: 5%;
padding: 2em;
}
}
/* Media Query for Desktop Viewport */
@media (min-width: 992px) {
.hero {
background-position: left;
}
.display-1 {
font-size: 8em;
}
}
|