Trying to find a sleeker way to create the following HTML button.
https://i.sstatic.net/Eanuy.png
Currently using an <a href="...">
with 2 child <span>
elements like this: -
<a href="">
<span class="box_button">Read more</span>
<span class="box_button_arrow">></span>
</a>
The CSS appears as follows: -
span.box_button {
display: block;
float: left;
padding: 6px 10px 8px 10px;
border: 4px solid white;
color: white;
}
span.box_button_arrow {
display: block;
float: left;
color: white;
padding: 6px 10px 8px 10px;
border-top: 4px solid white;
border-right: 4px solid white;
border-bottom: 4px solid white;
}
Note that the arrow span lacks a border on its left side.
Code pen link - http://codepen.io/bobmarksie/pen/bEPVgM
Is there a way to replace the 2 spans with a single HTML element?