Skip to main content
Nintex Community Menu Bar
Question

Change Default With of Field editor labels

  • July 9, 2024
  • 6 replies
  • 0 views
  • Translate

Forum|alt.badge.img+5

By default the basicfieldeditor as a label width of 40% and field of 60%

div.nx-basicfieldeditor-item>.nx-field, div.nx-basicfieldeditor-section-body>div.nx-basicfieldeditor-item>.nx-field {
width: 60%;
margin: 4px 0 3px;
}

During the inspection of the element this is what I see, and need this to be 40% not 60. Simply cutting and pasting the above into custom CSS does not work. Having a brain freeze so if someone can assist, that would be great.

Thanks in advance.

This topic has been closed for comments

Forum|alt.badge.img+8

Hi Ben,

just trimming down the css to the ‘.nx-field’ property should work. Try this instead:

.nx-field {
   width: 60%;
}

The one above will apply it to every ‘.nx-field’ component on the page. If you want to do it just within a single field editor, then apply a unique id to that field editor, e.g. customWidth, and then do:

#customWidth .nx-field {
   width: 60%;
}





Translate

Forum|alt.badge.img+5

Not sure how my email address got put into the subject field of this, but if someone at SKUID could fix that would be ideal.

Translate

Forum|alt.badge.img+8

I changed the subject of this post.

Translate

Forum|alt.badge.img+2

This does not work for me. I’m not sure what I could be doing wrong.
https://www.screencast.com/t/gqkXK8g3

Translate

Forum|alt.badge.img+8

see if adding a space before !important works, ie

width: 40% !important;

Translate

Forum|alt.badge.img+8

just checked and that may not help. I’ve tried a couple of different properties and .nx-field doesn’t seem to respond. These ones do however:

.nx-fieldtext {
    width: 10%;
}

.nx-basicfieldeditor-item {
    width: 10%;
}

.nx-basicfieldeditor-item-label {
    width: 10%;
}


Translate

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings