-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathrelated-shapes.html
69 lines (62 loc) · 1.45 KB
/
related-shapes.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Shapes</title>
<meta charset="UTF-8" />
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" />
<style type="text/css">
body {
font-family: "Open Sans", sans-serif;
}
main {
align-items: center;
display: flex;
flex-flow: column nowrap;
}
.shape {
margin: 10px 0;
}
.square {
background-color: red;
height: 100px;
width: 100px;
}
.circle {
background-color: orange;
border-radius: 50%;
height: 100px;
width: 100px;
}
.eye {
background-color: blue;
border-radius: 100% 0;
height: 100px;
width: 100px;
}
.triangle {
border-bottom: 100px solid green;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
height: 0;
width: 0;
}
.trapezium {
border-bottom: 50px solid purple;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
height: 0;
width: 100px;
}
</style>
</head>
<body>
<main>
<h1>Shapes</h1>
<div class="shape square"></div>
<div class="shape circle"></div>
<div class="shape eye"></div>
<div class="shape triangle"></div>
<div class="shape trapezium"></div>
</main>
</body>
</html>