+ 6
How can i make a triangle using div?
We got squares,rectangles and circle or oval through border-radius . How to make a triangle.
4 Antworten
+ 2
Css
.triangle{ width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 5px solid black; }
Use class
Html
<div class="triangle"></div>
+ 6
I am asking it cause I don't like working with SVG
+ 5
@alberto. thanks it worked
+ 1
Ur welcome