-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
92 lines (87 loc) · 2.59 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
* {
box-sizing: border-box;
}
/* Create four equal columns that floats next to each other */
.column {
float: left;
width: 25%;
padding: 10px 10px 10px 150px;
height: 400px;
background-position-x: 15px;
background-position-y: 30px;
background-repeat: no-repeat;
background-size: 100px;
}
#column1{
background-color: #00ff7f;
background-image: url("camera.png")
}
#column2{
background-color: #fa8072;
background-image: url("camera.png")
}
#column3{
background-color: #800080;
background-image: url("camera.png")
}
#column4{
background-color: #cd853f;
background-image: url("camera.png")
}
/* Clear floats after the columns */
.row:after {
/* height: 200px; */
content: "";
display: table;
clear: both;
}
/* Setting up grid table */
.grid-container {
display: grid;
grid-template-columns: auto auto auto auto;
grid-gap: 0px;
}
.grid-container > div {
text-align: left;
padding: 10px 10px 10px 150px;
font-size: 1rem;
background-position-x: 15px;
background-position-y: 30px;
background-repeat: no-repeat;
background-size: 100px;
}
.item1{
background-image: url("camera.png");
background-color: #00ff7f;
}
.item2{
background-image: url("camera.png");
background-color: #fa8072;
}
.item3{
background-image: url("camera.png");
background-color: #800080;
}
.item4{
background-image: url("camera.png");
background-color: #cd853f;
}
/* Responsive layout - makes the four columns stack on top of each other instead of next to each other */
@media screen and (max-width: 1060px) {
.column {
width: 50%;
height: 220px;
}
.grid-container {
grid-template-columns: auto auto;
}
}
@media screen and (max-width: 600px) {
.column {
width: 100%;
height: auto;
}
.grid-container {
grid-template-columns: auto;
}
}