Hexagon shape with a border/outline

前端 未结 5 1485
余生分开走
余生分开走 2020-11-27 07:53

I know it\'s possible to create a hexagon shape using the following code:

.hex:before {
    content: \" \";
    width: 0; height: 0;
    border-bottom: 30px          


        
5条回答
  •  半阙折子戏
    2020-11-27 08:17

    Done with placing the hexagonal shape on top of another. where black Hexagon at the bottom and white at the top.

    Here is the result

    enter image description here

    jsFiddle here

    Only will be like a border

提交回复
热议问题