Creating a Fuzzy Border in CSS 3

后端 未结 7 1651
伪装坚强ぢ
伪装坚强ぢ 2021-02-05 16:15

Here\'s my source image:

\"enter

And my source image zoomed in:

7条回答
  •  一整个雨季
    2021-02-05 16:32

    I'm a bit late but, yes, use border radius and box-shadow(s) and you should be good to go.

    .block {
      border-radius:6px;
      box-shadow: inset 0px 0px 2px 2px #aaa, 3px 3px 5px 0px #eee;
    }
    

提交回复
热议问题