In my project i need to draw rectangle with right arrow and it should be filled with white color background with black color border. I have tried in many ways but i didn't get right arrow with white background and black color border.
I tried follwoing code:
HTML:
<html>
<head></head>
<body>
<div class="paddingstyleleft right-arrow1">
<div><span><img src="images/referral_out.png"/> Referred To<span>
<div><strong>Dr.Sarah Willam</strong><span class="bandagealign"><span class="bandage">3</span></span></div>
<div class="datestyle"><img src="images/Date.png"/> Jul 24th,2016 | <div class="datestyle1 scheduledstatus"><span class="spanwaiting">Scheduled</span></div></div></div>
</div>
</body>
</html>
CSS:
.right-arrow1 {
display: inline-block;
position: relative;
background: white;
padding: 15px;
height: 100px;
padding:25px;
border-bottom: 1px solid grey;
width: 285px;
border: 1px solid black;
}
.right-arrow1:after {
content: '';
display: block;
position: absolute;
left: 100%;
top: 50%;
margin-top: -10px;
width: 0;
height: 0;
border-top: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 10px solid transparent;
border-left: 10px solid black;
}
Best Answer
you can check this fiddle for all arrows:
https://jsfiddle.net/wLxag8pn/