-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap-grid-example.html
111 lines (90 loc) · 2.57 KB
/
bootstrap-grid-example.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="template/public/css/styles-sass.css">
<title>Bootstrap grid example</title>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
background: none;
background-color: #ffffff;
color: #000000;
}
.row {
border-bottom: 10px solid #ffffff;
background-color: #ffffff;
}
div[class^='col'],
div[class*=' col'] {
padding: 0 12px;
background-clip: content-box, padding-box;
background-image:
linear-gradient(to bottom, #ffd1d1 0%, #ffd1d1 100%),
linear-gradient(to right, rgba(255, 0, 0, 0.1) 20%, rgba(255, 0, 0, 0.8) 80%);
min-height: 100px;
}
</style>
</head>
<body>
<div class="which-res"></div>
<!-- MAIN -->
<main>
<div class="container">
<!-- 12 cols of 1 = 12 -->
<div class="row">
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
</div>
<!-- 6 cols of 2 = 12 -->
<div class="row">
<div class="col-2"></div>
<div class="col-2"></div>
<div class="col-2"></div>
<div class="col-2"></div>
<div class="col-2"></div>
<div class="col-2"></div>
</div>
<!-- 4 cols of 3 = 12 -->
<div class="row">
<div class="col-3"></div>
<div class="col-3"></div>
<div class="col-3"></div>
<div class="col-3"></div>
</div>
<!-- 3 cols of 4 = 12 -->
<div class="row">
<div class="col-4"></div>
<div class="col-4"></div>
<div class="col-4"></div>
</div>
<!-- 2 cols of 6 = 12 -->
<div class="row">
<div class="col-6"></div>
<div class="col-6"></div>
</div>
<!-- 1 col of 12 = 12 -->
<div class="row">
<div class="col-12 text-center">
<br>
<b>In XXL (or your Figma)</b><br>
86px cols, with 12px horizontal padding, aka 24px 'gutter' (= 110px each)
</div>
</div>
</div>
</main>
<!-- Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>