-
Notifications
You must be signed in to change notification settings - Fork 790
Expand file tree
/
Copy pathexample-6.html
More file actions
44 lines (40 loc) · 893 Bytes
/
example-6.html
File metadata and controls
44 lines (40 loc) · 893 Bytes
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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>CSS Shapes - left and right float example</title>
<style type="text/css">
body {
margin:0;
font-family: Helvetica, Arial, sans-serif;
color:#222;
font-size:16px;
line-height:20px;
text-align: center;
}
.left {
shape-outside: polygon(0 0, 100% 100%, 0 100%);
width: 40%;
height: 12ex;
float: left;
-webkit-transform: scaleX(-1);
}
.right {
shape-outside: polygon(100% 0, 100% 100%, 0 100%);
width: 40%;
height: 12ex;
float: right;
}
</style>
</head>
<body>
<img class="left" src="hand.svg"/>
<img class="right" src="hand.svg"/>
<p class="focus">
Sometimes a web page's text content appears to be
funneling your attention towards a spot on the page
to drive you to follow a particular link. Sometimes
you don't notice.
</p>
</body>
</html>