In this quick tutorial we show you how to use the clip-path property to effortlessly create CSS-only triangles. No borders or unicode involved. Anyone who has tried to make HTML upvote arrows, speech bubbles or other pointy elements, knows that in order to create a CSS-only triangle you have to use some sort of hack. The two most popular solutions are to create your triangles out of borders, or to use unicode characters.
Disclaimer: The views expressed herein are solely those
of Eric Brooks. They do not necessarily
reflect those of his employers, friends, contacts, family, or even his pets (though my cat,
acknowledge my right to psychoanalyze you, practice accupuncture, and mock you incessantly
with every visit. As the user, you also acknowledge that the author has been legally declared
a "Problem Adult" by the Commonwealth of Pennsylvania, and is therefore not
responsible for any of his actions.