-
Notifications
You must be signed in to change notification settings - Fork 708
/
Copy pathmargin-box-edge.html
40 lines (40 loc) · 1.03 KB
/
margin-box-edge.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
<html>
<head>
<title>Complex box edge example</title>
<style>
body {
width: 300px;
}
.box-demo {
width: 100px;
height: 100px;
background-clip: content-box;
background-color: lightblue;
border: solid black 10px;
border-radius: 60px;
padding: 10px;
margin: 10px;
float: left;
-shape-outside: margin-box;
}
.margin-box {
position: absolute;
left: 8px;
top: 8px;
width: 140px;
height: 140px;
background-color: #B29BA3;
border: solid #FFF7A5 10px;
border-width: 10px;
border-radius: 70px;
z-index: -1;
}
</style>
</head>
<body>
<div class="margin-box"></div>
<div class="box-demo"></div>
<p>With no shape, the text wraps around the normal rectangular float area</p>
<!--<p>Using a margin-box shape, the text wraps using the margin's corner edges</p>-->
</body>
</html>