CSS box shadow around triangle

前端 未结 6 894
自闭症患者
自闭症患者 2021-01-11 13:25

I need to create a triangle with a drop shadow using simple html and css. Answered by another stackoverflow question, I was able to create the triangle with mitered borders

6条回答
  •  伪装坚强ぢ
    2021-01-11 13:44

    Create a duplicate of that triangle, decolorize it, give it a negative z-index value using css, and finally off center it with CSS positioning.

    div.triangle {
    z-index:-1;
    position:relative;
    bottom:-16px;
    right:-16px;
    }
    

提交回复
热议问题