I am trying to create rectangular button with a circle and right arrow inside it. I have tried few things but couldn't get them centered. Also this were using top and bottom properties of the page whereas I want them to be independent of the page properties and center them with respect to rectangle. Below is the code I am using.
.rectangle {
box-sizing: border-box;
display: inline-block;
width: 200px;
height: 100px;
border: 1px solid #ccc;
border-radius: 5px;
position: relative;
padding-box;
background: lightgreen;
opacity: 1;
}
.rectangle:before {
content: '';
border-radius: 100%;
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 60px;
height: 60px;
background: lightseagreen;
box-shadow: 0px 2px 48px #00000029;
opacity: 1;
}
.rectangle:after {
content: '';
display: inline-block;
margin-top: 1.05em;
margin-left: 1.05em;
width: 23px;
height: 23px;
border-top: 4px solid #333;
border-right: 4px solid #333;
-moz-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
<div class="rectangle"></div>