Hi I don't want an image for my submit button so I have gone with the default submit button but I want to edit its width and height. How do I do that?
<input type="submit" id="search" value="Search" />
Thanks!
James
Originally Answered: How do I make a button bigger in HTML? Put it inside of a div, set the div width/height to how big you want the button, then set button to 100% W, and 100% H, and 0 out margin, and padding on the button, and 0 padding on the div, but keep whatever margins you want.
Change the Submit Button's AppearanceIn the Form Builder, click the Form Designer icon. Go to the Styles tab. Scroll down to the Inject Custom CSS section.
By dragging either the right edge, bottom edge, or the corner, you can resize the form. The second way you can resize the form while the designer is open, is through the properties pane. Select the form, then find the Properties pane in Visual Studio. Scroll down to size and expand it.
just use style attribute with height and width option
<input type="submit" id="search" value="Search" style="height:50px; width:50px" />
Using CSS you can set a style for that specific button using the id (#) selector:
#search { width: 20em; height: 2em; }
or if you want all submit buttons to be a particular size:
input[type=submit] { width: 20em; height: 2em; }
or if you want certain classes of button to be a particular style you can use CSS classes:
<input type="submit" id="search" value="Search" class="search" />
and
input.search { width: 20em; height: 2em; }
I use ems as the measurement unit because they tend to scale better.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With