cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
prasannaadavi
Nintex Newbie

Nintex Forms: remove padding for text box

Jump to solution

Hi all,

I have a repeating section with several single line text boxes, and I would like to optimize the space utilization on the form.

How do I remove the padding around the text box? Not a CSS/JavaScript guy, so some help requested.

Labels: (3)
Tags (2)
0 Kudos
Reply
3 Replies
Nintex Employee
Nintex Employee

Re: Nintex Forms: remove padding for text box

Jump to solution

Hello Prasanna Adavi​ -

If you are working with the default CSS that is in Nintex Forms, you can adjust it by altering the following section:

.nf-form-input .nf-filler-control-inner, .nf-form-label .nf-filler-control-inner

{

     top: 10px;

     bottom: 10px;

     left: 10px;

     right: 10px;

}

Keep in mind that this is for all of the CSS Classes listed (.nf-form-input .nf-filler-control-inner, .nf-form-label .nf-filler-control-inner).

After you remove it, you can go into the settings for each control and set the padding to what you want under Formatting:

Hope this helps!

Reply
jr204
Nintex Newbie

Re: Nintex Forms: remove padding for text box

Jump to solution

Another option (especially if you're trying to avoid changing or overriding any code) would be to just clear out the CSS class field in the text box.  The nf-section, nf-form-input, etc. are automatically put in by Nintex, you can clear those out to remove the padding.

This allows you to individually choose which controls have the padding removed, versus changing the CSS class, which would change every control on the form belonging to that class.

When you do that, the text box should snap to the top-left of the control.  From there, you can resize the control by dragging the bottom-right corner to eliminate the padding on the right/bottom of the text box.

There is, unfortunately, a minimum size for the controls, so you can't always get them as small as you may like.  There are ways using CSS but I've run into other problems when I've tried to do that.

Please let me know if that helps or if you have any questions.

0 Kudos
Reply
prasannaadavi
Nintex Newbie

Re: Nintex Forms: remove padding for text box

Jump to solution

Fantastic! The suggestion by jr204 worked better for me.

Jesse's suggestion also was helpful, but for some reason, it still left the padding at the bottom of the text box, no matter what i did.

Reply