-
Notifications
You must be signed in to change notification settings - Fork 708
/
Copy pathexample-1.html
183 lines (148 loc) · 4.92 KB
/
example-1.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>CSS Regions - Simple Template Demo</title>
<style type="text/css">
body,
html {
height:100%;
width:100%;
overflow:hidden;
}
body {
margin:0;
font-family: Helvetica, Arial, sans-serif;
color:#222;
font-size:16px;
line-height:20px;
}
p {
margin:0;
display:inline;
}
.container{
text-align:justify;
-webkit-hyphens:auto;
/* flow the content inside this element */
-webkit-wrap-shape-mode: content;
width: 30em;
height: 30em;
overflow: hidden;
}
.container p {
font-size: 1.2em;
color: #808080;
}
.exclusion{
position:absolute;
background: rgba(70, 164, 233, 0.5);
/* flow text around this element */
--webkit-wrap-shape-mode: around;
--webkit-render-wrap-shape: auto;
}
#exclusion1{
top: 7.5em;
left: 15em;
height: 7.5em;
width: 7.5em;
}
#exclusion2{
top: 15em;
left: 7.5em;
height: 7.5em;
width: 7.5em;
}
.rect1{
/* regular box */
/* -webkit-wrap-shape: polygon(0px, 0px 7.5em, 0px 7.5em, 7.5em 0px, 7.5em 0px, 0px); */
/* emulate wrap-flow: end */
-webkit-wrap-shape: polygon(-15em, 0px 7.5em, 0px 7.5em, 7.5em -15em, 7.5em -15em, 0px);
/* emulate wrap-flow: start */
--webkit-wrap-shape: polygon(0em, 0px 15em, 0px 15em, 7.5em 0em, 7.5em 0em, 0px);
/* emulate wrap-flow: both */
--webkit-wrap-shape: polygon(0px, 0px 7.5em, 0px 7.5em, 7.5em 0px, 7.5em 0px, 0px);
/* emulate wrap-flow: clear */
--webkit-wrap-shape: polygon(-15em, 0px 15em, 0px 15em, 7.5em -15em, 7.5em -15em, 0px);
}
.rect2{
/* regular box */
/* -webkit-wrap-shape: polygon(0px, 0px 7.5em, 0px 7.5em, 7.5em 0px, 7.5em 0px, 0px); */
/* emulate wrap-flow: end */
-webkit-wrap-shape: polygon(-15em, 0px 7.5em, 0px 7.5em, 7.5em -15em, 7.5em -15em, 0px);
/* emulate wrap-flow: start */
-webkit-wrap-shape: polygon(0em, 0px 22.5em, 0px 22.5em, 7.5em 0em, 7.5em 0em, 0px);
/* emulate wrap-flow: both */
--webkit-wrap-shape: polygon(0px, 0px 7.5em, 0px 7.5em, 7.5em 0px, 7.5em 0px, 0px);
/* emulate wrap-flow: clear */
--webkit-wrap-shape: polygon(-7.5em, 0px 22.5em, 0px 22.5em, 7.5em -7.5em, 7.5em -7.5em, 0px);
}
#workspace{
position:relative;
width:80%;
margin:0 auto;
font-size: 13px;
top: 25px;
}
.col {
position: absolute;
height: 100%;
border: 1px solid gray;
top: 0px;
opacity: 0.5;
width: 7.5em;
}
.row {
position: absolute;
width: 100%;
border: 1px solid gray;
left: 0px;
opacity: 0.5;
height: 7.5em;
}
#col-1 {
left: 0px;
}
#col-2 {
left: 7.5em;
}
#col-3 {
left: 15em;
}
#col-4 {
left: 22.5em;
}
#row-1 {
top: 0px;
}
#row-2 {
top: 7.5em;
}
#row-3 {
top: 15em;
}
#row-4 {
top: 22.5em;
}
</style>
</head>
<body>
<div id="workspace">
<div id="exclusion1" class="exclusion rect1"></div>
<div id="exclusion2" class="exclusion rect2"></div>
<div style="position:absolute;">
<div class="container">
<p>Lo­rem ip­sum do­lor sit amet, con­sec­te­tur ad­ipisc­ing elit. Vi­va­mus ac nul­la ac nunc ves­ti­b­u­lum sod­ales sed eget pu­rus. In­te­ger tris­tique neque at urna eleif­end por­ta. Mau­ris a sa­pi­en augue, ve­hic­u­la rutrum augue. Sus­pend­isse pre­tium pulvi­nar tris­tique. Nul­la el­e­men­tum blan­dit mas­sa, pel­len­tesque el­e­men­tum orci tem­pus sed. Cur­a­bi­tur eget est neque, nec pel­len­tesque enim. Sed blan­dit do­lor et neque tin­ci­dunt rutrum. Lo­rem ip­sum do­lor sit amet, con­sec­te­tur ad­ipisc­ing elit. Nul­lam tin­ci­dunt do­lor vel neque eleif­end frin­g­il­la. Prae­sent et orci nec jus­to vulpu­tate ul­tri­c­ies ac in leo. In nec ip­sum enim. Donec sus­cip­it plac­er­at ad­ipisc­ing. Nul­la a nunc mi. Sed ve­hic­u­la sus­cip­it mag­na sed con­val­lis. Donec ul­trices con­se­quat tor­tor, at fer­men­tum augue mal­esua­da in. Ut cur­sus, odio non port­ti­tor var­i­us, dui neque luc­tus la­cus, in rhon­cus dui odio eges­tas libe­ro. Mae­ce­nas po­s­u­ere con­sec­te­tur lec­tus, vi­tae con­sec­te­tur lig­u­la con­sec­te­tur eu.</p>
<div id="col-1" class="col"></div>
<div id="col-2" class="col"></div>
<div id="col-3" class="col"></div>
<div id="col-4" class="col"></div>
<div id="row-1" class="row"></div>
<div id="row-2" class="row"></div>
<div id="row-3" class="row"></div>
<div id="row-4" class="row"></div>
</div>
</div>
</div>
</body>
</html>