Answers for "how do you set the width to a button in css to equal text length"

2

css size button

button {
  font-size: 20px; /* Put your wanted size for your button here*/
}
Posted by: Guest on November-21-2020
-2

button width based on text csss

Remove the width and display: block and then add display: inline-block to the button.
Posted by: Guest on June-22-2020

Code answers related to "how do you set the width to a button in css to equal text length"

Browse Popular Code Answers by Language