DEV Community

Discussion on: Drawing a triangle with CSS

Collapse
 
afif profile image
Temani Afif

one line triangle using conic-gradient : jsfiddle.net/mwfskaLx/1/.. useful if we want to think angles instead of dimension
Also with mask jsfiddle.net/mwfskaLx/2/ and jsfiddle.net/mwfskaLx/3/

Collapse
 
alvaromontoro profile image
Alvaro Montoro

These are great options, and they would simplify considerably the background-image method. I had conic-gradient aside because Firefox didn't support it (not to mention IE). But that has changed now in FF, and this is a great use of it.