JSFiddle - React, Tailwind, and code Playground

by Daniel Pietrasik

HTML

<!-- CSS3 Shapes – kształty za pomocą CSS3 – część 1 - przykład 27 -->
<!-- http://danielpietrasik.pl/css3-shapes-ksztalty-za-pomoca-css3/ -->

<div id="example27"></div>

CSS

#example27 {
	width: 0;
	border: 12px solid transparent;
	border-bottom: 10px solid #F34A53;
	position: relative;
	top: -10px;
    transform: rotate(135deg);
    margin-top: 20px
}
#example27:after {
	content: '';
	position: absolute;
	left: -5px; 
    top: 8px;
	width: 0;
	border: 5px solid transparent;
	border-top: 20px solid #F34A53;
    border-bottom: 0px;
}