html
html
1
2
3
4
5
6
7
8
9
<!DOCTYPE html>
<html>
<head>
<title>CONCAVE CORNERS</title>
</head>
<body>
<div class="concave"></div>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
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
body {
}
.concave {
position: relative;
width: 10em;
height: 3em;
line-height: 3em;
margin: 1em auto;
padding: 0.5em;
background-color: #00f;
color: #fff;
}
.concave::before {
content: '';
position: absolute;
top: -1em;
left: -1em;
border: 1em solid #fff;
border-radius: 1em;
}
.concave::after {
content: '';
position: absolute;
bottom: -1em;
left: -1em;
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run