Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Element max height of screen Reply To: Element max height of screen

#282483
Beverleyh
Participant

It’s probably easiest if you provide us with the example code that you have in a codepen.io demo, showing any issues you’re having in the layout you’re trying to achieve. Folks here tend not to code anything without you proving the starting point. Help us to help you.

Generally speaking, look into using 100vh value for your outer container’s height property (e.g. https://stackoverflow.com/a/16837667), and for scrollbars/no scrollbars, have a look into the overflow property; you can add or remove scroll bars from the X and Y axis individually if you need to.