button width from text code example
Example: button width based on text csss
Remove the width and display: block and then add display: inline-block to the button.
Remove the width and display: block and then add display: inline-block to the button.