There is a code
h2 { text-transform: uppercase; color: #fff; background: #F00; text-align: center; width: 120%; position: absolute; left: -5px; top: 59px; transform: rotate(35deg); } h2:after { background: #D10A0A; content: ''; position: absolute; transform: rotate(150deg); width: 20px; height: 40px; left: 90%; z-index: -1; } <h2 class="action">Хит продаж</h2> I do not understand why the pseudo-element for any value of z-index obtained on layers higher than the element itself. It turns out such nonsense as in the photo:
