-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (53 loc) · 1.56 KB
/
index.html
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
<!doctype html>
<html>
<head>
<title>Inline-block grids without all the hassle thanks to Adobe Blank</title>
<meta charset="utf-8">
<style type="text/css">
@font-face {
font-family: blank;
src: url(AdobeBlank.otf);
}
* {
box-sizing: border-box; -moz-box-sizing: border-box;
}
body {
padding: 1em;
font-family: Verdana, sans-serif;
font-size: 12px;
}
.grid {
width: 100%;
background: #b4d455;
}
.grid__item {
width: 25%;
padding: 1em;
display: inline-block;
background: #c0ff33;
}
.no-whitespace {
font-family: blank;
}
.no-whitespace .grid__item {
font-family: Verdana, sans-serif;
}
</style>
</head>
<body>
<h1>Without Adobe Blank</h1>
<div class="grid">
<div class="grid__item">1</div>
<div class="grid__item">2</div>
<div class="grid__item">3</div>
<div class="grid__item">4</div>
</div>
<h1>With Adobe Blank</h1>
<div class="grid no-whitespace">
<div class="grid__item">1</div>
<div class="grid__item">2</div>
<div class="grid__item">3</div>
<div class="grid__item">4</div>
</div>
</body>
</html>