+ 1

Is there anyway to create Hexagon using HTML and CSS?

I try triangles, But I haven't idea how to create Hexagon.. Can anyone give some idea to help me for that?

21st Jun 2020, 8:42 AM
Tharindu Rangika
7 Respuestas
+ 5
Using svg but polyline ,I really can't understand the example Calvin provide,with path it looks extremely complicated lol
21st Jun 2020, 11:27 AM
Abhay
Abhay - avatar
21st Jun 2020, 11:48 AM
Abhay
Abhay - avatar
21st Jun 2020, 11:06 AM
Calviղ
Calviղ - avatar
+ 2
Why dont you create 3 div 1 rectangle 1 for top triangle and 1 one bottom triangle
21st Jun 2020, 9:01 AM
Ayush Kumar
Ayush Kumar - avatar
+ 2
You can fake it with gradient backgrounds. http://cssdeck.com/labs/css-shapes-with-gradients
21st Jun 2020, 10:43 AM
Ore
Ore - avatar
+ 2
Abhay I used https://editor.method.ac to draw, and modified the svg code.
21st Jun 2020, 3:09 PM
Calviղ
Calviղ - avatar
+ 2
Thank you all
23rd Jun 2020, 8:43 AM
Tharindu Rangika