+ 1

How to create a triangle in html and css?I would like to have 3 layers in the triangle.

I would like to create a triangle and write some descriptions outside and beside the triangle.

26th Apr 2020, 12:12 PM
xqqjohn
5 odpowiedzi
+ 3
https://code.sololearn.com/WuZpNv9lJEt7/?ref=app xqqjohn you should comment unindented css properties in css tab to hide construction elments (I've let them visible to better see how to do ;)) [ edit ] Code updated to add interactive switch button between show/hide construction elements (always pure Html/Css)... Default view now hidden ^^
26th Apr 2020, 12:33 PM
visph
visph - avatar
0
Why have you mentioned JavaScript and jQuery in tags then? You can use svg for that
26th Apr 2020, 12:15 PM
Abhay
Abhay - avatar
0
I forgot what to write so I just simply write some of them.HEHE
26th Apr 2020, 12:17 PM
xqqjohn
0
What kind of 2d pyramid? Did you mean a triangle? of what kind? isosceles, equilateral, ...?
26th Apr 2020, 12:19 PM
visph
visph - avatar
0
isosceles will do
26th Apr 2020, 12:20 PM
xqqjohn