forked from CodeYourFuture/HTML-CSS-Coursework-Week3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
83 lines (76 loc) · 1.31 KB
/
style.css
File metadata and controls
83 lines (76 loc) · 1.31 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.header-banner {
height: 200px;
display: flex;
justify-content: space-between;
align-items: flex-end;
background-color: rgb(190, 218, 192);
}
.header-banner img {
width: 40%;
object-fit: cover;
}
.header-banner h2 {
width: 40%;
}
nav.navbar.justify-content-end.navbar-expand-md.navbar-light.bg-light.container {
position: absolute;
top: 0%;
right: 0%;
}
.welcome img {
width: 100%;
}
.cards {
margin: 30px auto 20px auto;
}
.card {
width: 300px;
height: 250px;
border-radius: 10px;
padding: 0;
margin: 10px auto;
}
footer {
background-color: rgb(190, 218, 192);
display: flex;
justify-content: center;
padding-top: 40px;
}
.footer_icons {
display: flex;
justify-content: center;
}
.footer_icons i {
font-size: 40px;
margin-left: 10px;
color: white;
}
.fa-brands {
width: 40px;
height: 50px;
}
@media screen and (min-width: 540px) {
nav.navbar.justify-content-end.navbar-expand-md.navbar-light.bg-light.container {
position: static;
}
}
@media screen and (max-width: 740px) {
.card {
width: 200px;
height: 200px;
}
}
/* styles for laptop*/
@media screen and (min-width: 900px) {
.welcome {
display: flex;
flex-direction: row-reverse;
justify-content: space-between;
}
.welcome img {
width: 45%;
}
.welcome div {
width: 45%;
}
}