Answers for "button width based on text css"

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 "button width based on text css"

Browse Popular Code Answers by Language