input { padding: 0.5rem; text-align: right; } input { padding: 0.5rem; text-align: right; } input { padding: 0.5rem; text-align: right; }

spacing in html input type=number with text-align:right

49 Views Asked by At

within a html form I have an <input type="number" style="text-align: right;">

input {
  padding: 0.5rem;
  text-align: right;
}
<input type="number" value="123456">

It looks like this:

Input

Is there a way to define some little space between the number and the up/down controls?

0

There are 0 best solutions below