Html – Draw right arrow using CSS

csshtml

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"/> &nbsp;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"/>&nbsp;Jul 24th,2016   &nbsp;| <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/

.arrow-up {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid black;
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid #f00;
}

.arrow-right {
  width: 0;
  height: 0;
  border-top: 60px solid transparent;
  border-bottom: 60px solid transparent;
  border-left: 60px solid green;
}

.arrow-left {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid blue;
}