-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbox.css
111 lines (105 loc) · 1.29 KB
/
box.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
.wrapper {
width: 100%;
}
.pd {
padding: 1em;
}
.box {
height: 600px;
border: 1px solid black;
box-sizing: border-box;
float: left;
margin: 1em;
position: relative;
display: flex;
flex-direction: row;
flex-wrap: wrap;
background-color: yellow;
}
.inner {
background-color: cyan;
border: 2px solid black;
}
.inner-big {
margin-top: 1em;
background-color: cyan;
border: 2px solid black;
}
.ffb {
position: absolute;
left: 0;
}
.fsb {
position: absolute;
right: 0;
}
.ftb {
position: absolute;
bottom: 1em;
left: 1em;
}
.sfb {
width: 44%;
left: 1em;
position: absolute;
}
.ssb {
width: 44%;
right: 1em;
position: absolute;
}
.tfb {
position: absolute;
left: 1em;
}
.tsb {
position: absolute;
right: 1em;
bottom: 1em;
}
img {
object-fit: cover;
}
.img1 {
position: absolute;
right: 1em;
}
.img2 {
position: absolute;
bottom: 1em;
left: 1em;
}
@media screen and (min-width: 768px) {
.box {
width: 30%;
}
.inner {
height: 45%;
}
.inner-big {
height: 90%;
}
.sm {
width: 45%;
}
.lg {
width: 90%;
}
}
@media screen and (max-width: 768px) {
.box {
width: 100%;
}
.inner {
height: 45%;
}
.inner-big {
height: 90%;
}
.sm {
width: 45%;
}
.lg {
width: 90%;
}
}