Title: Request: Container Max Height
Last modified: May 23, 2020

---

# Request: Container Max Height

 *  Resolved [pracko](https://wordpress.org/support/users/pracko/)
 * (@pracko)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/request-container-max-height/)
 * Would love to see a setting for max height on containers. So far, all the rest
   is working fantastic!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/request-container-max-height/#post-12881777)
 * Hi there,
 * We do have a min-height option, but I’m not sure how a max-height option would
   work. What would happen to the inner content once it became taller than the max-
   height?
 *  Thread Starter [pracko](https://wordpress.org/support/users/pracko/)
 * (@pracko)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/request-container-max-height/#post-12881811)
 * With a (max) height set on both containers, the inner container’s height would
   need to be set less than the outer container’s height.
 * Reason I ask is because in a section with a background image (outer container)
   on a page I’m working on, the outer container (“section”) takes up way too much
   real estate in the viewport on mobile devices, so I want to set a height/max-
   height on that to lessen the amount of space it takes up. The inner container
   is centered vertically and there’s just too much space above and below it.
 *  Plugin Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/request-container-max-height/#post-12884762)
 * I guess the question there is why the section is taking up way too much real 
   estate on mobile? Padding?
 * Any chance you can link me to the page?
 *  Thread Starter [pracko](https://wordpress.org/support/users/pracko/)
 * (@pracko)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/request-container-max-height/#post-12885100)
 * Hey Tom, no it wasn’t padding. I played around with it a bit and stuck with the
   min-height option on mobile. Works just as well and seems best option so as to
   avoid the inner container issue you mentioned. Cheers.
 *  Plugin Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/request-container-max-height/#post-12888939)
 * Awesome, glad you found a solution 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Request: Container Max Height’ is closed to new replies.

 * ![](https://ps.w.org/generateblocks/assets/icon.svg?rev=3239461)
 * [GenerateBlocks](https://wordpress.org/plugins/generateblocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/generateblocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/generateblocks/)
 * [Active Topics](https://wordpress.org/support/plugin/generateblocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/generateblocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/generateblocks/reviews/)

## Tags

 * [container](https://wordpress.org/support/topic-tag/container/)
 * [height](https://wordpress.org/support/topic-tag/height/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tom](https://wordpress.org/support/users/edge22/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/request-container-max-height/#post-12888939)
 * Status: resolved