# Spacing after "number" input fields

**URL:** <https://forum.universal-robots.com/t/spacing-after-number-input-fields/396>\
**Category:** HTML\
**Created:** [December 6, 2016, 10:35am UTC](https://forum.universal-robots.com/t/spacing-after-number-input-fields/396 "2016-12-06T10:35:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon87029337](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@anon87029337](https://forum.universal-robots.com/u/anon87029337)\
**Post date:** [December 6, 2016, 10:35am UTC](https://forum.universal-robots.com/t/spacing-after-number-input-fields/396/1 "2016-12-06T10:35:16Z")

</div>

Hi,

I have a problem using the input fields. When using the input fields of type “number” the textbox is smaller as when using type “text”. This leads to a weird space after the box, which especially looks bad, when adding units to the input field.

Using the following code:

`<label>Position:</label><input id="popuptitle" type="number"/>mm`

leads to this output:

![](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/1X/4d870fb7c1df7f547ac140ada5b2b1dfe33c79c9.png)

Is there any way to get rid of that space?

---

<div class="post-metadata">

**Author:** ![anon87029337](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@anon87029337](https://forum.universal-robots.com/u/anon87029337)\
**Post date:** [January 4, 2017, 5:54pm UTC](https://forum.universal-robots.com/t/spacing-after-number-input-fields/396/2 "2017-01-04T17:54:11Z")

</div>

Hi there,  
are there any news on that?

---

<div class="post-metadata">

**Author:** ![SonglinCai](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/songlincai/32/478_2.png) [@SonglinCai](https://forum.universal-robots.com/u/SonglinCai)\
**Post date:** [January 5, 2017, 5:10am UTC](https://forum.universal-robots.com/t/spacing-after-number-input-fields/396/3 "2017-01-05T05:10:02Z")

</div>

Hi, try to add padding attribute to corresponding element. e.g. style=“padding-right:0 px; padding-left: 0 px”
