Code a Nice Looking CSS Button

Here is a quick code snippet that will build a good looking CSS button in 3D, we will be using the CSS : before selector which inserts content before the content of the selected element.

CSS Code

The :active selector is used to select and style the active link.

The :before selector inserts content before a selected element

HTML


Note: For :before to work in IE8, a <!DOCTYPE> must be declared.