-
Notifications
You must be signed in to change notification settings - Fork 76
/
responsive.css
86 lines (73 loc) · 1.53 KB
/
responsive.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
/* Responsive web design introduction */
.header {
background-color: #0099cc;
color: #ffffff;
text-align: center;
font-size: 24px;
padding: 15px;
border:1px solid black;
}
.footer {
background-color: #0099cc;
color: #ffffff;
text-align: center;
font-size: 24px;
padding: 15px;
border:1px solid black;
}
/* Sudo Element to clear float after row class */
.row::after {
content: "";
clear: both;
display: table;
}
/* Selects all elements which have class name starting with col- */
[class*="col-"] {
float: left;
padding: 10px;
background-color: #07cc00;
margin:5px;
height:150px;
font-size: 24px;
color:white;
text-align: center;
border:1px solid black;
}
[class*="col-"]{
width: 98%;
}
/* Media Querries which are triggered when condition mentioned in brackets is encountered */
/* when width of screen is greater than equal to 1200px the following css is applied */
@media (min-width: 1200px){
[class*="col-"]{
height:400px;
}
.col-3{
width:23%;
}
.col-6{
width:46%;
}
}
@media (min-width: 1000px) and (max-width:1199px){
[class*="col-"]{
height:400px;
}
.col-3{
width:22.5%;
}
.col-6{
width:42%;
}
}
@media (min-width: 750px) and (max-width:999px){
[class*="col-"]{
height:400px;
}
.col-3{
width:22%;
}
.col-6{
width:43%;
}
}