You can also use SVG for a figure.
You create a triangle with the polygon tag:
<polygon class="triangle" fill="currentColor" stroke="#000" stroke-dasharray="0, 30, 90" points="30,4 60,4 60,30" />
Code snippet:
.myDiv { width: 300px; padding: 15px; text-align: right; background-color: lightblue; position: relative; border: 1px solid black; } .myDiv svg { position: absolute; right: 20px; bottom: -59.7px; color: lightblue; }
<div class="myDiv">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco <svg height="64" width="64" viewBox="0 0 64 64"> <polygon class="triangle" fill="currentColor" stroke="#000" stroke-dasharray="0, 30, 90" points="30,4 60,4 60,30" /> </svg> </div>
Ricky source share