Html – Making emboss buttons

csshtml

height: 160px;
width: 160px;
text-decoration: none;
text-transform: capitalize;

-webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 20px;

border-width: 0px;
border-radius: 20px;

box-shadow: inset 0px -2px 1px rgba(0,0,0,0.8),
inset 0 2px 1px rgba(255,255,255,1);

margin: 15px 5px;

background: linear-gradient(top, #23b224, #23b224);
background: -webkit-linear-gradient(top, #23b224, #23b224);
background: -moz-linear-gradient(top, #23b224, #23b224);
background-image:-webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #23b224), color-stop(100%, #23b224));  

The code above will produce the following result:

enter image description here

But what I want to achieve is something like this:

enter image description here

I want my buttons to appear like the buttons in the second picture. How to do it?

Best Answer

Try this and let me know....

input {
  padding: 5px 30px;
  border: 1px solid darkgreen;
  border-radius: 4px;
  -webkit-box-shadow: inset 1px 6px 12px lightgreen, inset -1px -10px 5px darkgreen, 1px 2px 1px black;
  -moz-box-shadow: inset 1px 6px 12px lightgreen, inset -1px -10px 5px darkgreen, 1px 2px 1px black;
  box-shadow: inset 1px 6px 12px lightgreen, inset -1px -10px 5px darkgreen, 1px 2px 1px black;
  background-color: green;
  color: white;
  text-shadow: 1px 1px 1px black;
}
<input type=button>
Reference:-https://dev.opera.com/articles/beautiful-ui-styling-with-css3/

Related Topic