How can I correctly add a shadow and a gradient to my triangular shape?

前端 未结 5 781
暗喜
暗喜 2021-01-01 17:59

I want to make the following design:

I tried with :after and :before but it does not work. Here’s my current code:

5条回答
  •  耶瑟儿~
    2021-01-01 18:08

    Change to (only changed lines listed, keep everything else as-is):

    .design:before {
      ...
      border-left: 114px solid transparent;
      border-right: 114px solid transparent;
      ...
      width: 0;
    }
    

提交回复
热议问题