D
D
Dima2021-07-06 12:00:07
css
Dima, 2021-07-06 12:00:07

How to make such a bevelled button responsive?

60e41a424b863249201509.jpeg
How to make such a button, but so that it is:

  • adaptive - there can be more text, it can be transferred to another line, but so that the beveled corners do not change from the size of the text, so that they are set rigidly
  • without tricks with "make before and after, rotate them 45 degrees and make one side the color and thickness of the main frame" this thing will not work, because the backgrounds of the button can be different and the before and after background cannot be made transparent because it interrupts the real block angle
  • so that you can make a hover on the button with box-shadow and it is along the entire button that the edges are lit

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim, 2021-07-06
Dolgoter @SpiderPigAndCat

How to make beveled corners with stroke and transparent background?
Added adaptation for your case

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question