Double box/border? Is this possible in CSS?

前端 未结 4 1336
时光取名叫无心
时光取名叫无心 2021-01-17 17:20

I\'m trying to recreate this image in CSS.

This is what I got from experimenting, so far. I used box-shadow to act as the second box. I\'m not sure if there\'s a bet

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-17 17:52

    Use an absolute positioned ::after or ::before pseudo element and have its z-index lower than the element itself.

提交回复
热议问题