P
P
Polina Emelyanova2019-01-28 12:58:14
css
Polina Emelyanova, 2019-01-28 12:58:14

How to make a button with a torn top border?

Good afternoon, colleagues.
I ask you to help me make a button, as shown in the photo
5c4ed14d1c419310994913.jpeg
. The upper border is torn closer to the right corner with a monolithic overall.
CONDITIONS:
There should be no additional nested elements. CSS only.
PLEASE
No 3 word answers like "Use SVG". Immediately complaint. Thank you for understanding.
Thank you in advance for your help.
If this question has already been described - please give a link to it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ankhena, 2019-01-28
@bugo_aneo

If opaque, then white pseudo-elements.
If transparent, then the top border is not a border, but a 1 point high background gradient.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question