This question already has an answer here:
- How to make triangle shape in before a div in pure css? 1 answer
- How do CSS triangles work? 17 answers
http://nl.tinypic.com/r/jgm90h/8
I would like to know how to make a HTML button tag have the shape in the link above using pure CSS3. Can you guys help me out?
The trick is to use the pseudo classes
:before
and:after
. Try it like this:JsFiddle: http://jsfiddle.net/VpW5x/