Blog

Adaptive height slider: grow with each slide, or a fixed height

Avocado toast with egg

A slider with a fixed height leaves empty space under short slides and cuts off long ones. An adaptive height slider takes the height of the slide on show. In Gutenslider this is one switch, per device, in the free plugin.

Content slider with an image and text on each slide
The content slider example grows with its content on phones, where the columns stack.

Let the slider grow with each slide

  1. Select the slider and open the Slides panel.
  2. Turn on Grow with the content. The slider now takes the height of the slide on show.
  3. Use the device switch to set it per device. A common setup: a fixed height on desktop, where text sits next to the image, and grow with the content on phones, where everything stacks.

Or a fixed height

For photo sliders a steady height looks calmer. Set a Minimum height in the same panel, in any CSS unit:

ValueMeansGood for
400pxAlways 400 pixelsCarousels, product sliders
60vh60 % of the screen heightHeroes that scale with the screen
30emGrows with the font sizeText slides

The minimum height is a minimum: a slide with more content than fits still makes the slider taller, so text is never cut off. Full screen height fills the screen instead, see Fullscreen background slider.

Tips

  • With adaptive height the dots at the bottom move with each slide’s height. Keep the arrows at the sides, or with Pro move the dots to the top (eight dot positions).
  • Check the padding on phones: 40 px around the content on desktop is a lot on a small screen. Padding can be set per device.

Every height option is in the settings reference.