• Resolved irving.bos

    (@irvingbos)


    I would like to set the height of the slider to be a function of the viewport height. Is there a way to do this? I tested some CSS settings, but the logic to set img height and width seems to be buried deeper than is accesible and override-able in CSS. Any help would be appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author htmgarcia

    (@htmgarcia)

    Hi @irvingbos

    please try adding !important to your CSS. As example:

    height: 90vh !important

    Regards

    Thread Starter irving.bos

    (@irvingbos)

    Hi, thanks, I am already doing that.

    What I am really asking is if there is a plugin-supported way to use vh and/or vw or % to specify what the width / height of the slider should be. Offering ‘px’ as the only measurement is not very flexible.

    any support or help would be appreciated!

    thanks.

    Plugin Author htmgarcia

    (@htmgarcia)

    We only allow px values.

    Regards

    Plugin Author Steve Burge

    (@stevejburge)

    @irvingbos Thanks for the suggestion. Using vh and/or vw or % isn’t something we’re against doing. It’s just that we rely on the FlexSlider library and using px is baked into that library.

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

The topic ‘set slider height by using vh’ is closed to new replies.