https://i.sstatic.net/BE0ga.png
Looking to create a button solely using CSS without any images? The challenge lies in the bottom-left and top-right corners, particularly when the button is on a non-solid background. Need help coming up with a universal solution using only CSS.
Feel free to check out a demo of the button here →
Here's a snippet of the HTML from the demo:
<div id="banner">
<div id="button-box">
<a class="btn-cornered btn-cornered-dark-bg" href="#"><span>Learn More</span></a>
</div>
</div>
And the accompanying CSS:
#banner {
background: url('https://d3vv6lp55qjaqc.cloudfront.net/items/2D1R0A0B1q031R1C2P26/Image%202017-11-07%20at%201.57.17%20PM.png?X-CloudApp-Visitor-Id=8b9380dd59b56afec49e5f1e289c6692&v=53edcac2') no-repeat center -420px;
background-size: cover;
display: block;
width: 100%;
height: 200px;
text-align: center;
}
#button-box {
padding: 50px 0;
}
/* Button styles */
.btn-cornered {
/* CSS styling properties here */
}