-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
106 lines (97 loc) · 2.96 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Responsive Grid</title>
<link rel="stylesheet" href="./css/responsive-grid.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link rel="stylesheet" href="./css/demo.css">
</head>
<body>
<h1>Responsive Grid</h1>
<p>resize your screen to see the grid change</p>
<h2>Rows and Columns</h2>
<div class="row center">
<div class="col">
<div class="box">col</div>
</div>
<div class="col">
<div class="box">col</div>
</div>
<div class="col">
<div class="box">col</div>
</div>
<div class="col">
<div class="box">col</div>
</div>
</div>
<h3>.row .center</h3>
<div class="row center">
<div class="col lg-1of3 sm-full">
<div class="box">col lg-1of3 sm-full</div>
</div>
<div class="col lg-1of3 sm-full">
<div class="box">.col lg-1of3 sm-full</div>
</div>
<div class="col lg-1of3 sm-full">
<div class="box">.col lg-1of3 sm-full</div>
</div>
</div>
<h3>Nested rows and cols</h3>
<div class="row center">
<div class="split-box col 1of2">
col 1of2
<div class="row center">
<div class="col sm-1of2 lg-1of4">
<div class="nested-box">col sm-1of2 lg-1of4</div>
</div>
<div class="col sm-1of2 lg-1of4">
<div class="nested-box">align-center</div>
</div>
<div class="col sm-1of2 lg-1of4">
<div class="nested-box">align-bottom</div>
</div>
<div class="col sm-1of2 lg-1of4">
<div class="nested-box">align-top</div>
</div>
</div>
</div>
<div class="col 1of2 split-box">
col 1of2
<div class="row">
<div class="col sm-full lg-1of2 align-top">
<div class="nested-box">col sm-full lg-1of2 align-top</div>
</div>
<div class="col sm-full lg-1of2 align-bottom">
<div class="nested-box">col sm-full lg-1of2 align-bottom</div>
</div>
</div>
</div>
</div> <!-- end of row -->
<h3>Row .center</h3>
<div class="row center">
<div class="col-1of4">
<div class="box"></div>
</div>
<div class="col-1of4">
<div class="box"></div>
</div>
</div>
<h3>Row .start</h3>
<div class="row start">
<div class="box col-1of4 align-top">align-top</div>
<div class="box col-1of4 align-bottom">align-bottom</div>
</div>
<h3>Row .end</h3>
<div class="row end">
<div class="box col-1of4 align-center">align-center</div>
<div class="box col-1of4"></div>
</div>
<footer>
<a href="https://github.com/vnikolova/responsive-grid">
<i class="fa fa-2x fa-github" aria-hidden="true"></i>
</a>
</footer>
<script src="https://use.fontawesome.com/77fb8bfbde.js"></script>
</body>
</html>