Answers for "button width according to text"

1

button size html

<button style="height:40px; width:40px;">Press Me</button>
Posted by: Guest on March-31-2021
0

change button size css

.test{
    height:200px;
    width:200px;
}
Posted by: Guest on April-20-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 width according to text"

Browse Popular Code Answers by Language