Title: Responsive max height
Last modified: February 24, 2022

---

# Responsive max height

 *  Resolved [noname1](https://wordpress.org/support/users/greyisgood/)
 * (@greyisgood)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/responsive-max-height/)
 * Hi, great plugin, I tested all the sliders, and this is the cleanest and best
   for the block editor.
 * My page content sits in a wide responsive div using Bootstrap grid. The slider
   is 100% within this. This is great for landscape orientation content, but if 
   one of the content is portrait orientation, it makes the whole slider massive,
   and will leave large gap underneath.
 * Is there an easy way to globally set a max height, and all content scales and
   centers within slider?
 * thanks for your help

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

 *  Thread Starter [noname1](https://wordpress.org/support/users/greyisgood/)
 * (@greyisgood)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/responsive-max-height/#post-15414040)
 * as an example, jetpack slideshow does this automatically.
 *  Plugin Author [Virgildia](https://wordpress.org/support/users/virgildia/)
 * (@virgildia)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/responsive-max-height/#post-15415382)
 * Hello [@greyisgood](https://wordpress.org/support/users/greyisgood/) ! Great 
   to know that you are finding the plugin useful! At this time Carousel Block does
   not have an option for adaptive or max height. You will have to set this with
   custom CSS.
 * This feature will be available in future versions.
    -  This reply was modified 4 years, 3 months ago by [Virgildia](https://wordpress.org/support/users/virgildia/).
 *  Thread Starter [noname1](https://wordpress.org/support/users/greyisgood/)
 * (@greyisgood)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/responsive-max-height/#post-15415596)
 * not really a feature request… fixed it
 *     ```
       .wp-block-cb-carousel .wp-block-image > img {
         max-width: 100%;
       	  max-height: 800px;
       object-fit: contain;
         width: auto;
         height: auto;
       }
       ```
   

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

The topic ‘Responsive max height’ is closed to new replies.

 * ![](https://ps.w.org/carousel-block/assets/icon.svg?rev=2024115)
 * [Carousel Slider Block for Gutenberg](https://wordpress.org/plugins/carousel-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/carousel-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/carousel-block/)
 * [Active Topics](https://wordpress.org/support/plugin/carousel-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/carousel-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/carousel-block/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [noname1](https://wordpress.org/support/users/greyisgood/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/responsive-max-height/#post-15415596)
 * Status: resolved