Skip to main content
Nintex Community Menu Bar
Question

Format buttons with uniform width

  • Jun 27, 2024 8:51 PM UTC
  • 7 replies
  • 9 views
  • Translate All

Forum|alt.badge.img+1

be nice to be able to format the buttons to give them an uniform width

(i know… picky, picky) Note: This topic was created from a reply on the Create Buttons on Tab topic.

7 replies

Forum|alt.badge.img+1
  • Inspiring
  • Jun 27, 2024 10:01 PM UTC

Reply that Ben Hubbard gave: 

Hi Ken, 

Adding this code as an inline CSS resource should get you started down that road. 

.nx-panel-left-inner .ui-button { 
display: block; 
background: lightblue; 

} 

.nx-panel-left-inner > div > div > div > div { 
display: block !important; 
} 

.nx-panel-left-inner > div > div > div { 
width: 100%; 
display: block; 
}

Translate

Forum|alt.badge.img+1
  • Participating Frequently
  • Jun 27, 2024 10:01 PM UTC

Can this code be modified to only affect specific buttons?  Or specific components (like a popup)?

Translate

Forum|alt.badge.img+1
  • Inspiring
  • Jun 27, 2024 10:01 PM UTC

Each button has an “Advanced” properties tab where you can give the button a specific class.  This class can then be added to the CSS defined above. 

Translate

Forum|alt.badge.img+1
  • Inspiring
  • Jun 27, 2024 10:01 PM UTC

Use your Element inspector in your browser to see what classes are being applied.  Getting the correct selectors applied to your elements is a tricky business. 

Translate

Forum|alt.badge.img+1
  • Participating Frequently
  • Jun 27, 2024 10:01 PM UTC

I think I’m doing something wrong then.  I have separate CSS entries, each with unique names.  I have assigned some buttons to one CSS and others to another CSS.  For some reason they are all defaulting to one particular CSS.  Any thoughts?

Translate

Forum|alt.badge.img+1
  • Participating Frequently
  • Jun 27, 2024 10:01 PM UTC

Can you see the attached image?  I’m not really sure what I’m looking for.  I’ve assigned the buttons on the left to different CSS, but they are all the same…

aaed671d0305dbda53a2e9173e50d5da5347147c.jpg

Translate

Forum|alt.badge.img+1
  • Participating Frequently
  • Jun 27, 2024 10:01 PM UTC

more specifically, it appears that the buttons on the left do load with the correct CSS, but they are then re-run with the wrong CSS when the default page loads…

Translate