+ 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.

25th Feb 2017, 6:24 PM
Utkαrsh
Utkαrsh - avatar
4 ответов
+ 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>
25th Feb 2017, 6:36 PM
Albertz
Albertz - avatar
+ 6
I am asking it cause I don't like working with SVG
25th Feb 2017, 6:24 PM
Utkαrsh
Utkαrsh - avatar
+ 5
@alberto. thanks it worked
25th Feb 2017, 7:31 PM
Utkαrsh
Utkαrsh - avatar
+ 1
Ur welcome
25th Feb 2017, 7:32 PM
Albertz
Albertz - avatar