button width based on text csss

CSS
Remove the width and display: block and then add display: inline-block to the button. 
Source

Also in CSS: