how to fit ttext in button html 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.