-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
74 lines (71 loc) · 1.47 KB
/
styles.css
File metadata and controls
74 lines (71 loc) · 1.47 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
/* Reset some default browser styles */
body, h1, p {
margin: 0;
padding: 0;
}
/* Define the breakpoints */
@media (min-width: 992px) {
/* Desktop view */
.container {
display: flex;
}
.section {
flex: 1;
margin: 10px;
padding: 20px;
border: 1px solid black;
background-color: #e0e0e0;
position: relative;
}
.section-title {
position: absolute;
top: 10px;
right: 10px;
background-color: #333;
color: white;
padding: 5px 10px;
}
}
@media (min-width: 768px) and (max-width: 991px) {
/* Tablet view */
.container {
flex-direction: column;
}
.section {
flex: 1;
margin: 10px;
padding: 20px;
border: 1px solid black;
background-color: #e0e0e0;
position: relative;
}
.section-title {
position: absolute;
top: 10px;
right: 10px;
background-color: #333;
color: white;
padding: 5px 10px;
}
}
@media (max-width: 767px) {
/* Mobile view */
.container {
flex-direction: column;
}
.section {
margin: 10px;
padding: 20px;
border: 1px solid black;
background-color: #e0e0e0;
position: relative;
}
.section-title {
position: absolute;
top: 10px;
right: 10px;
background-color: #333;
color: white;
padding: 5px 10px;
}
}