Design HTML button button size with CSS
HTML button The size of the button can be controlled by the CSS built-in width and height attributes, respectively, to control the width and height of the button. The button size we need can be accurately designed, which is better than the traditional HTML control of the button size. To be more accurate, let's review the HTML button button syntax first, and then apply CSS to redesign the button size. The example in this article is a standard technique for button size design, which is supported by all major browsers.
HTML button button syntax
For the introduction of buttons, please refer to the detailed explanation of " HTML button buttons ".
Design HTML button button size example with CSS
<input type="button" value="button value" name="button name "style="width:120px;height:40px;">
<input type="button" value="button value" name="button name" style="width:140px;height:50px;">
Post a Comment
0 Comments