forked from jen4web/css4grid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfloat.css
69 lines (67 loc) · 896 Bytes
/
float.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
/* this stylesheet deals with layout by float */
.row::before,
.row::after {
content:"";
display: table;
clear:both;
}
[class*='col'] {
margin: 1%;
width: 98%;
}
/* medium devices */
@media (min-width: 550px) {
[class*='col'] {
float: left;
}
.col-1-nest,
.col-2 {
width: 48%;
}
.col-1,
.col-3,
.col-4 {
width: 98%;
}
.col-1-nest {
margin: 1%;
}
.col-push-1,
.col-pull-3 {
left: 0;
width: 98%;
position: static;
}
}
/* Large devices */
@media (min-width: 850px) {
.col-1,
.col-1-nest,
.col-pull-3 {
width: 24%;
}
.col-2 {
width: 48%;
}
.col-3,
.col-push-1 {
width: 72%;
}
.col-4 {
width: 98%;
}
.col-1-nest {
margin-right: 1%;
margin-left: 0;
}
/* rearranging the columns */
[class*="col-"] {
position: relative;
}
.col-push-1 {
left: 26%;
}
.col-pull-3 {
left: -74%;
}
}