Creating a Stylish CSS Button:
https://i.sstatic.net/Ol3fvpj1.png
I came across a stylish graphical button on a website and decided to replicate it using CSS. My goal is to make this button work seamlessly across all major browsers. Check out the demo: https://codepen.io/Alix-Blaine/pen/wvLwxrN.
Implementing with CSS:
main {
margin: 0;
width: 4.313em;
}
a {
display: block;
text-decoration: none;
text-transform: capitalize;
background-color: #666699;
font-size: 0.75em;
color: #FFF;
padding: .2em;
box-sizing: border-box;
border-bottom: 2px inset rgba(26, 25, 25, 0.8);
border-left: 2px inset rgba(0, 0, 0, .5);
border-right: 2px inset rgba(26, 25, 25, 0.8);
border-top: 2px inset rgb(255, 255, 255);
}
<main>
<a href="index.html">Twitter</a>
</main>
Results:
Chrome
https://i.sstatic.net/4RyhSdLj.png
Firefox