Home › Forums › CSS › Element max height of screen › Reply To: Element max height of screen
February 7, 2019 at 10:48 pm
#282483
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.