How do I create a teardrop in HTML?

How do I create a shape like this to display on a webpage? I don’t want to use images since they would get blurry on scaling I tried with CSS: .tear { display: inline-block; transform: rotate(-30deg); border: 5px solid green; width: 50px; height: 100px; border-top-left-radius: 50%; border-bottom-left-radius: 50%; border-bottom-right-radius: 50%; } <div class=”tear”> </div> That … Read more

How do CSS triangles work?

There’re plenty of different CSS shapes over at CSS Tricks – Shapes of CSS and I’m particularly puzzled with a triangle: #triangle-up { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 100px solid red; } <div id=”triangle-up”></div> How and why does it work? 2 22 CSS Triangles: A Tragedy in … Read more