While I was fiddling with this \'Fancy 3D Button\' example, I found that the width seemed to be hard-coded to fit the text\'s width.
width
Here is the HTML /
If you are developing to a modern browser. https://caniuse.com/#search=fit%20content
You can use:
width: fit-content;