border - How to Make a 3D button using CSS? -
i have css button looks this:
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):
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; }
Comments
Post a Comment