-
Notifications
You must be signed in to change notification settings - Fork 2
/
flexbox.css
69 lines (58 loc) · 1.01 KB
/
flexbox.css
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
* {
margin: 0;
padding: 0;
}
.container {
display: flex;
flex-direction: row;
height: 100vh;
background-color: rgb(231, 226, 226);
padding: 2rem 16rem;
gap: 2rem;
box-sizing: border-box;
}
.grid {
flex: 1;
display: flex;
gap: 2rem;
flex-direction: column;
justify-content: center;
box-sizing: border-box;
}
.middle_grid {
flex-direction: column-reverse;
}
.image_container_top {
height: 300px;
contain: content;
}
.image_container_bottom {
height: 750px;
contain: content;
}
.image_top, .image_bottom {
width: 100%;
height: 100%;
}
.header {
text-align: center;
padding: 2rem 0;
}
@media screen and (max-width: 768px) {
.container {
flex-direction: column;
gap: 1rem;
height: fit-content;
width: 100%;
padding: 1rem .5rem;
}
.grid {
gap: 1rem;
}
.image_container_bottom {
height: 300px;
}
.middle_grid {
flex-direction: column;
}
}