CSS: buttons style
The style of the buttons on your website can not only be set using your editor, but can also be edited using CSS. You can use CSS to visually enhance the look of your website, but what is CSS?
CSS stands for "Cascading Style sheets", which is responsible for the visual style of a web page.
In today's short article, we are going to do a button conversion.
The following code will be used for decoration:
.button {
margin: 10px;
font-family: "Arial Black", Gadget, sans-serif;
font-size: 50px;
padding: 15px;
text-align: center;
text-transform: uppercase;
transition: 0.5s;
background-size: 200% auto;
colour: #FFF;
box-shadow: 0 0 20px #eee;
border: 0 !important;
width: 200px;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
cursor: pointer;
display: inline-block;
border-radius: 25px;
background-image: linear-gradient(to right, #7474BF 0%, #348AC7 51%, #7474BF 100%)}
Finally, we also set the style for mouse over:
button:hover{
box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
margin: 8px 10px 12px;
background-position: right center;}
If you are interested in the world of CSS, you can read more about it at the link below: