We would like to know how to create CSS Right Arrow.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.arrow {<!--from w ww.j av a 2s . co m-->
width: 0px;
height: 0px;
left: 100px;
top: 200px;
position: relative;
}
.arrow:after, .arrow:before {
bottom: 0%;
left: 0%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
}
.arrow:after {
bottom: 3px;
left: -3px;
border-left-color: #eaeaea;
border-width: 50px;
margin-left: -50px;
}
.arrow:before {
border-left-color: #20204d;
border-width: 53px;
margin-left: -53px;
top:
}
</style>
</head>
<body>
<div class="arrow"></div>
</body>
</html>
The code above is rendered as follows: