.buy-now { box-sizing: border-box; font-size: 1.1rem; border: 2px solid #eb2633; background-color: #eb2633; color: white; padding: 0.6rem 1rem; text-decoration: none; margin: 2rem 0 0; display: block; width: fit-content; border-radius: 5px; transition: 100ms ease-in-out; } .buy-now:hover { background-color: transparent; color: black; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter