-
Notifications
You must be signed in to change notification settings - Fork 27
/
grid.html
86 lines (77 loc) · 1.7 KB
/
grid.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
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> Lorem Ipsum Crash Test </title>
<meta name="author" content="Vladimir Carrer">
<link rel="stylesheet" href="css/basic.css" type="text/css">
<style>
main {
margin: 0 auto;
width: 82%;
text-align: left;
padding: 0 20px;
}
[style*="--c:"],section>section{
color: #fff;
background-color: #00bbeb;
padding: 15px;
margin: 10px 8px 10px 8px;
text-align: center;
}
</style>
</head>
<body>
<main>
<h1>Simple Grid</h1>
<section>
<section> 1 </section>
<section> 2 </section>
<section> 3 </section>
</section>
<section>
<section>1</section>
<section>2</section>
<section>3</section>
<section>4</section>
</section>
<section>
<section> 1 </section>
<section> 2 </section>
<section> 3 </section>
<section> 4 </section>
<section> 5 </section>
</section>
<h2>Complex grid</h2>
<section>
<section> 1 </section>
<section> 2 </section>
<section> 3 </section>
</section>
<section>
<section style = "--c:2">Merge the first 2 columns</section>
<section>2</section>
<section>3</section>
<section>4</section>
</section>
<section>
<section> 1 </section>
<section style = "--c:3"> Merge 3 columns </section>
<section> 3 </section>
</section>
<section>
<section>1</section>
<section style = "--c:2">Merge 2</section>
<section style = "--c:3">Merge 3</section>
<section>4</section>
<section>5</section>
<section>6</section>
<section>7</section>
</section>
<section>
<div style = "--c:1"> 1 </div>
<div style = "--c:2"> Merge 2 columns</div>
<div style = "--c:1"> 3 </div>
</section>
</main>
</body>
</html>