border - How to Make a 3D button using CSS? -


i have css button looks this:

enter image description here

that formed css code:

.button{  color: #333; border: 1px solid orange; border-bottom: 5px solid orange; background-color: #fff; font-size: 12px; margin: 5px; padding: 1px 7px 1px 7px; display: inline-block; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; position: relative; top: 0px; }  .button:hover{ cursor: hand;  cursor: pointer; }  .button:active{ border-bottom: 3px solid #999; top: 3px; } 

this trying make (but can't figure out how it): enter image description here

please pardon drawing skills. want extend orange border on left looks 3d. thanks!

this close, not quite perfect.

using box-shadow & border:

.button {     color: #333;     box-shadow: -3px 3px orange, -2px 2px orange, -1px 1px orange;     border: 1px solid orange; } 

http://jsfiddle.net/grytz/3/


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -