DEV Community

Cover image for Stop using obsolete methods to create CSS Triangles! ⚠️

Stop using obsolete methods to create CSS Triangles! ⚠️

Temani Afif on February 13, 2024

The triangle is the most popular shape in CSS since years. If you google "how to create a triangle using CSS" you will get a ton of old and obsolet...
Collapse
 
link2twenty profile image
Andrew Bone

Border triangles did have their charm though, no?

I don't actually recommend ever doing this anymore 😅

Collapse
 
afif profile image
Temani Afif

Such triangles belong into a museum for history purpose 🙃

Collapse
 
ryanlwh profile image
Ryan Lee

Nice article. No more wrestling with border triangles.

Collapse
 
framemuse profile image
Valery Zinchenko • Edited

That's nice, but do you have performance and compatibility comparison?