Skip to main content
Nintex Community Menu Bar
Question

CSS: Panel: Vertical Height

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

Forum|alt.badge.img+8

How can I edit the panel CSS to make the left side panel span the entire screen height?

I’ve tried height and max-height at 100%…

b91fa41264afec5f675877216911f29105f49365.jpg




Did this topic help you find an answer to your question?
This topic has been closed for comments

Forum|alt.badge.img+13

Scott, can you be a little more specific about how your page is constructed so we can suggest guidance? Are you talking about a Panel Set within a Table Drawer (going off of your screenshot) or about a top-level Panel Set? What are your current Panel Set settings?

Translate

Forum|alt.badge.img+8

Hey Zach - This is the left side of a panel set.  I have the the color set to lightsteelblue.  I have tried to adjust the height in CSS with “height:100%” and/or “min-height:100%”, but it does seem to work… All i’m looking for is to extend the background color to the vertical height of the screen… any thoughts?
7540c1e14405d81e07f7a90b037e22537b9ecc4e.jpg

Translate

Forum|alt.badge.img+8

Hi Scott, there are two things I would try that might work for your use case…

1. Change the scrolling mode on your panel set to “Variable Height Scrolling” and change the offset to 0.  This will cause the panel set to try to take up 100% of the screen height minus whatever your offset is.  In this case, the Skuid Panel Set component is using Javascript to to set the height of your panel set.  It should adjust whenever you change the height of your browser window.

2. Use CSS to set the height to 100%.  The reason your height:100% css rule is not working is that setting the height on an element only makes it take up 100% of its parent.  You’ll need to set everything up the chain from your panel set to height:100% as well.  I would try a rule like this.

.nx-panel-left, .myPanelCustomCssClass, .nx-page, body, html {   
   height: 100%;
}

Translate

Forum|alt.badge.img+8

perfect - you’re the man ben hubbard!

Translate

Forum|alt.badge.img+20

Curious. Which option worked? 1 or 2?

Translate

Forum|alt.badge.img+8

i just used option 1

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