This repository was archived by the owner on Jun 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.html
85 lines (81 loc) · 2.06 KB
/
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
<!DOCTYPE html>
<html>
<head>
<title>Example flexible squares</title>
<style>
.fs-cell {
float: left;
text-align: center;
position: relative;
background: rgba(50,50,50,0.2);
}
.fs-cell .fs-content {
display: block;
background: steelblue;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: 7px;
}
.fs-cell.fs-rows-12 {
width: calc(8.33333333%);
padding-bottom: calc(8.33333333%);
}
.fs-cell.fs-rows-11 {
width: calc(9.09090909%);
padding-bottom: calc(9.09090909%);
}
.fs-cell.fs-rows-10 {
width: calc(10%);
padding-bottom: calc(10%);
}
.fs-cell.fs-rows-9 {
width: calc(11.11111111%);
padding-bottom: calc(11.11111111%);
}
.fs-cell.fs-rows-8 {
width: calc(12.5%);
padding-bottom: calc(12.5%);
}
.fs-cell.fs-rows-7 {
width: calc(14.28571429%);
padding-bottom: calc(14.28571429%);
}
.fs-cell.fs-rows-6 {
width: calc(16.66666667%);
padding-bottom: calc(16.66666667%);
}
.fs-cell.fs-rows-5 {
width: calc(20%);
padding-bottom: calc(20%);
}
.fs-cell.fs-rows-4 {
width: calc(25%);
padding-bottom: calc(25%);
}
.fs-cell.fs-rows-3 {
width: calc(33.33333333%);
padding-bottom: calc(33.33333333%);
}
.fs-cell.fs-rows-2 {
width: calc(50%);
padding-bottom: calc(50%);
}
.fs-cell.fs-rows-1 {
width: calc(100%);
padding-bottom: calc(100%);
}
</style>
</head>
<body>
<div class="fs-cell fs-rows-7"><span class="fs-content"> </span></div>
<div class="fs-cell fs-rows-7"><span class="fs-content"> </span></div>
<div class="fs-cell fs-rows-7"><span class="fs-content"> </span></div>
<div class="fs-cell fs-rows-7"><span class="fs-content"> </span></div>
<div class="fs-cell fs-rows-7"><span class="fs-content"> </span></div>
<div class="fs-cell fs-rows-7"><span class="fs-content"> </span></div>
<div class="fs-cell fs-rows-7"><span class="fs-content"> </span></div>
</body>
</html>