Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to control the size of input type="number" arrow buttons

Tags:

html

css

I'm implementing an input combo box of type="number".

I want to adjust the size of the up-arrow button and bottom-arrow button.

I think that these buttons are so small buttons that users may feel an inconvenient click motion.

I've been trying to fix this by Googling, investigating properties and selectors of this, but I couldn't get any methods, and I expect that this is because number box has been recently released tag of HTML5.

How Can I adjust this size? please give me any idea. please.

Regards,

enter image description here

<td>
<input type="number" name="qty" value="1" name="goodsnum" onChange = "qtyChanged();">
</td>
like image 397
hsw4840 Avatar asked Jul 18 '17 12:07

hsw4840


1 Answers

You can interact with arrows by css.

input[type=number] {
    height: 30px;
}

input[type=number]:hover::-webkit-inner-spin-button {  
    width: 14px;
    height: 30px;
}
<input type="number" value="0" >
like image 171
Abdullah Danyal Avatar answered Nov 12 '22 12:11

Abdullah Danyal