-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid.css
72 lines (60 loc) · 954 Bytes
/
grid.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
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
* {
border: 1px solid slategray;
text-align: center;
}
p {
color: blue;
}
.container {
color: red;
}
.row{
width:100%;
clear: both;
color: blue;
}
.col-third{
float: left;
width:33.33%;
}
.col-half{
width:50%;
float: left;
}
.col-full{
width: 100%;
float:left;
}
.col-fourth{
width: 25.00009%;
float: left;
}
.col-twothirds{
width: 66%;
float: left;
/*padding-left: 33%; this moves the text inside the box */
margin-left: 16.5%; /*this moves the column box - a margin that is half of the width-100 from the float side will center it */
}
.col-threefourths{
width: 75%;
float: left;
margin-left: 12.5%
}
div{
background-color:blue;
}
body > div{
background-color: red;
}
div div{
background-color: orange;
}
div a{
background-color: black;
}