-
Notifications
You must be signed in to change notification settings - Fork 0
/
mini-reset.css
62 lines (51 loc) · 1022 Bytes
/
mini-reset.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
/*
CSS Mini Reset
Based on https://github.com/vladocar/CSS-Mini-Reset
*/
/* ---------------------
Apply a natural box layout model to all elements
http://paulirish.com/2012/box-sizing-border-box-ftw/
--------------------- */
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
/* ---------------------
Clearfix
http://nicolasgallagher.com/micro-clearfix-hack/
--------------------- */
.cf:before,
.cf:after {
content: " "; /* 1 */
display: table; /* 2 */
}
.cf:after {
clear: both;
}
/**
* For IE 6/7 only
* Include this rule to trigger hasLayout and contain floats.
*/
.cf {
*zoom: 1;
}
/* ---------------------
General DOM Elements
--------------------- */
html, body, div, form, fieldset, legend, label {
margin: 0;
padding: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
th, td {
text-align: left;
vertical-align: top;
}
h1, h2, h3, h4, h5, h6, table, caption, p, ol, ul, img {
margin: 0;
}
img { border: 0; }