The final result :
blank css button http://img832.imageshack.us/img832/8258/664d7b5656434db68cbee8b.png
Although I tried to make the button as in the picture, some parts may not be the same. Will consider this a proof of concept.
This button can be pure CSS
with only a lot of extra markup with this markup:
<a class="btn"> <span class="triangle"></span> <span class="btn_inner"> <span class="triangle"></span> Back </span> </a>
The basic trick for creating triangles with the box-shadow tag involves several steps:
In .tag_inner
use the same trick, but box-shadow
should not be inset
, but normal.
Note that if you will use this trick, always check which vendor
prefixes should be used and put the property without the prefix in last place.
Update: Make markup more semantic - only one element for the triangle trick.
source share