Hey, Shawtii!
- You need to use an
svg
tag, not animg
tag. You can then set thefill
property in CSS to change its color. - What I did is make a
div
element with the desired weight and height, setrotate
to45deg
and adjust its position. There are ways to make triangles by changing a div's border like shown on this video, but this works just fine since you can cover half of the square when positioning it to make it look like a triangle. - You can use
position: absolute
andtranslate
which lets you set its x and y position relative to itself so it is always at the right place. I did the same with the trianglediv
that we talked about in the second question.
I hope this helps!
0
Lisa Allen• 520
@CrypticMango
Posted
@Daniel77apr
Hello!
Thank you for this, this helps me a lot so I can get my project looking like it should.
1