We would like to know how to create CSS Rounded Arrow Button.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
a {<!--from ww w . j av a2s. com-->
background: white;
color: red;
font-family: sans-serif;
float: left;
padding: 20px;
position: relative;
text-decoration: none;
-webkit-border-radius: 5px 2px 2px 5px;
}
a:after {
content: "";
background: white;
display: block;
position: absolute;
left: -20px;
top: 9px;
height: 40px;
width: 40px;
z-index: -1;
-webkit-transform: scaleX(.5) rotate(45deg);
-webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}
a:before {
content: " ";
display: block;
background: yellow;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
-webkit-border-radius: 5px;
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
</style>
</head>
<body>
<a href=""> OK </a>
</body>
</html>
The code above is rendered as follows: