Skip to content

Instantly share code, notes, and snippets.

@sundlee
Created September 16, 2020 11:35
Show Gist options
  • Save sundlee/bb305029e7adc64e0e139da67c32a8b5 to your computer and use it in GitHub Desktop.
Save sundlee/bb305029e7adc64e0e139da67c32a8b5 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="kr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Polygon Button Example</title>
<style>
#polygonBtn .polygonBtn {
position: relative;
background: #4169E1;
color: #FFFFFF;
border: 0;
min-width: 70px;
padding: 7px 15px;
clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%, 0 30%);
}
#polygonBtn .polygonBtn:hover {
background: #00008B;
}
</style>
</head>
<body>
<div id="polygonBtn">
<button class="polygonBtn">Polygon Button</button>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment