-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
109 lines (104 loc) · 1.34 KB
/
style.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
/* css document */
*{
box-sizing: border-box;
}
h1{
margin-bottom:15px;
text-align:center;
}
body{
margin:0px;
}
#d1, #d2,#d3{
position:relative;
border: 1px solid black;
float:left;
height:250px;
overflow:hidden;
}
p{
position:absolute;
top:15%;
}
#t1,#t2,#t3{
border: 1px solid black;
position:absolute;
right: 0px;
top: 0px;
height:20%;
width:40%;
text-align:center;
}
#t1{
background-color:pink;
}
#t2{
background-color:red;
}
#t3{
background-color:orange;
}
@media(min-width:992px){
.row{
width:100%;
height:300px;
}
.d1-pc, .d2-pc, .d3-pc{
width:30%;
}
.d1-pc{
background-color:green;
margin-left:2.5%;
margin-right:2.5%;
}
.d2-pc{
background-color:yellow;
margin-right:2.5%;
}
.d3-pc{
background-color:blue;
}
}
@media(min-width:768px) and (max-width:991px){
.row{
padding:5%;
width:100%;
height:400px;
margin-bottom:5%;
}
.d1-tb{
background-color:green;
width:47.5%;
margin-right:5%;
}
.d2-tb{
background-color:yellow;
width:47.5%;
}
.d3-tb{
background-color:blue;
margin-top:5%;
width:100%;
}
}
@media(max-width:767px){
.row{
padding:5%;
width:100%;
margin-bottom:5%;
}
.d1-cl{
background-color:green;
width:100%;
}
.d2-cl{
background-color:yellow;
margin-top:5%;
width:100%;
}
.d3-cl{
background-color:blue;
margin-top:5%;
width:100%;
}
}