Creating a transparent inner notch?

后端 未结 4 1306
自闭症患者
自闭症患者 2020-12-21 05:14

I know how to create a notch on the outside like:

div:after {
    content: \'\';
    display: block;
    width: 20px;
    height: 20px;
    -webkit-transform         


        
4条回答
  •  清歌不尽
    2020-12-21 05:48

    Try this fiddle out, it should set you on your way for what you're looking for.

    #notched {
         width: 0px;
         height: 0px;
         border-right: 60px solid transparent;
         border-top: 60px solid #d35400;
         border-left: 60px solid #d35400;
         border-bottom: 60px solid #d35400;
    }
    

    Updated fiddle

提交回复
热议问题