I have a button that already includes an ::after element below it, but I am looking to add a shape/element to the right side of the div.
a {
position: relative;
display: inline-block;
padding: 15px 10px;
margin: 0 5px;
color: #222;
font-size: 0.9em;
font-weight: 700;
}
a:after {
content: "";
position: absolute;
display: inline-block;
background-color: #d11e5d;
margin: 0 auto;
height: 3px;
width: 0;
bottom: 6px;
left: 0;
right: 0;
}
a.btn-contact::before {
background: #0c0;
content: '';
display: inline-block;
float: left;
height: 10px;
width: 10px;
position: absolute;
right: 0;
top: 0;
}
<a href="" class="btn-contact">button</a>
I managed to position it to the right of the link, but I want it to align vertically on the right side.
EDIT: Complete CSS/HTML provided. This is for a Wordpress site with the .btn-contact class applied to a specific button.