Skip to content

Commit 82c0746

Browse files
committed
Border Radius Shapes
1 parent b127303 commit 82c0746

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

More-CSS/border-radius-shapes.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Border Radius Shapes</title>
7+
<style>
8+
body {
9+
display: grid;
10+
place-content: center;
11+
min-height: 100vh;
12+
}
13+
button {
14+
font-size: 20px;
15+
padding: 0.5rem;
16+
background: lightgreen;
17+
color: whitesmoke;
18+
border: 0;
19+
margin-top: 10px;
20+
}
21+
.ellipse {
22+
border-radius: 50%;
23+
}
24+
.pill {
25+
border-radius: 9999px; /*for perfect pill shape*/
26+
}
27+
</style>
28+
</head>
29+
<body>
30+
<button class="ellipse">Ellipse</button>
31+
<button class="pill">Pill Shape</button>
32+
</body>
33+
</html>

0 commit comments

Comments
 (0)