Answers for "button according to text width"

1

button size html

<button style="height:40px; width:40px;">Press Me</button>
Posted by: Guest on March-31-2021
-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 according to text width"

Browse Popular Code Answers by Language