forked from sourbh185/assignment2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style2.css
121 lines (102 loc) · 1.57 KB
/
style2.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
112
113
114
115
116
117
118
119
120
121
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: Helvetica, sans-serif;
}
h1 {
margin-bottom: 15px;
text-align: center;
}
div {
height: auto;
border: 1px solid black;
float: left;
position: relative;
font-size: 16px;
margin: 1%;
padding-top: 45px;
padding-right: 30px;
padding-left: 30px;
padding-bottom: 30px;
}
p {
position: absolute;
top: 0;
right: 0;
width:30%;
padding: 5px;
font-size: 21.5px;
text-align: center;
}
#p1 {
background-color: #58787C;
}
#p2 {
background-color: #58787C;
}
#p3 {
background-color: #58787C;
}
/********** Large devices only **********/
@media (min-width: 992px) {
#p1, #p2, #p3 {
float: left;
border: 1px;
}
#p1 {
width: 31%;
}
#p2 {
width: 31%;
}
#p3 {
width: 31%;
}
}
/********** Medium devices only **********/
@media (min-width: 768px) and (max-width: 991px) {
#p1, #p2, #p3 {
float: left;
border: 1px;
}
#p1 {
width: 48%;
}
#p2 {
width: 48%;
}
#p3 {
width: 98%;
}
}
@media (max-width: 767px) {
#p1, #p2, #p3 {
float: left;
border: 1px;
}
#p1 {
width: 98%;
}
#p2 {
width: 98%;
}
#p3 {
width: 98%;
}
}
#chicken
{
background-color: #F5E70C;
border: 1px solid black;
}
#Beef
{
background-color: #F45782;
border: 1px solid black;
}
#Sushi
{
background-color: #08E2F8;
border: 1px solid black;
}