Tutorial on how to create a beautiful 3D button using only CSS&HTML.
HTML
For HTML we have only one button element with "CLICK" text.
<button>CLICK</button>
CSS
Now we'll set some basic styling to a button.First we'll remove button's default border, by setting border property to none.We'll set the background color to #976D70 and text color to #fff.We'll add some padding so it looks nice.And of course the transition. So the hover effect, which we'll add later, is nice and smooth.We'll set the border radius to 6px.Now we'll add two shadows.The first one (#665367 0 7px 2px) represents the bottom side of the button, which creates a 3d effect, and the second one (#000 0 8px 6px) is the actual shadow.The first one (#665367 0 7px 2px) represents the bottom side of the button, which creates a 3d effect, and the second one (#000 0 8px 6px) is the actual shadow.