Home>Support>Layout Slider: % height not working

Layout Slider: % height not working

Hi,

If I give the Layout Slider a fixed height in px, it will work. But, if I give the height as a %, it does not. A real pain as I need it to display at 100% so that it will resize for other devices and not cut off any images.

Any chance of fixing this or a way I can?

Many Thanks,
Ryan

https://s12.postimg.org/58b9hgm8t/Screen_Shot_2016_11_10_at_09_05_35.png

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 10 months ago Alex S
    Hi, I Work Here

    Hi Ryan,

    Percentage based heights will only work in the manner you’re after if the container it’s applied to is also of that height. This means it’s actually dependent on your theme to handle this rather than the slider.

    As a result, I would highly recommend switching the unit of measurement to vh as it’s easier to set up (and honestly better). Set the height to 98 (or there about to a count for the address bar) and the unit of measurement to vh.

  2. 7 years, 10 months ago Private Message - ryanhayden

    This is a private message.

  3. 7 years, 10 months ago Private Message - ryanhayden

    This is a private message.

  4. 7 years, 10 months ago Alex S
    Hi, I Work Here

    Hi Ryan,

    Okay, so to clarify, how do you actually want it to look? Based on the mobile version, it looks like you want it to be one image after another, is this the case?

  5. 7 years, 10 months ago Private Message - ryanhayden

    This is a private message.

  6. 7 years, 10 months ago Private Message - Alex S Hi, I Work Here

    This is a private message.

  7. 7 years, 10 months ago Private Message - ryanhayden

    This is a private message.

  8. 7 years, 10 months ago Private Message - ryanhayden

    This is a private message.

  9. 7 years, 10 months ago Alex S
    Hi, I Work Here

    Hi Ryan,

    Sorry for the delay. I’ve run a few tests with the provided layout and I still can’t seem to replicate the issue you’re having. To clarify, what happens when you don’t set a height?

  10. 7 years, 10 months ago Private Message - ryanhayden

    This is a private message.

  11. 7 years, 10 months ago Alex S
    Hi, I Work Here

    Hi Ryan,

    Sadly, a login won’t help as I wasn’t able to replicate the issue on your site either. Hm. At this point we could try and force a minimum height with CSS.

    If you navigate to AppearanceCustom CSS, you’ll get our custom CSS editor. Please add the following CSS.

    #pgc-4691-0-0 .sow-slider-image-wrapper, #pgc-4691-0-0 .so-widget-sow-image-grid {
    	min-height: 780px;
    }
    

    You might also need to install the SiteOrigin CSS Editor.

  12. 7 years, 10 months ago Private Message - ryanhayden

    This is a private message.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More