Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #484869

    I’d like to use the Fullscreen slider, but I don’t want it to be “fullscreen.” Ideally, I’d like it to remain full width, but set a custom height of 700px. So far I tried using the following code to achieve this:

    .avia-slideshow-inner {
    height: 700px !important;
    }
    .avia-slideshow {
    max-height: 700px !important;
    }

    This seems to work well on my desktop, but the width is no longer responsive when I shrink my screen down to tablet or mobile size. I think it remains constant at 700px height…

    Is there a better way to set a custom height for the Fullscreen slider yet still allow it to remain responsive? Thank you in advance!

    Lora

    #485114

    Hi loraehmke!

    Thank you for using Enfold.

    You can use css media queries to adjust the height on smaller screens. Example:

    @media only screen and (min-width: 1200px) {
     .avia-slideshow-inner {
    height: 400px !important;
    }
    .avia-slideshow {
    max-height: 400px !important;
    }
    }

    Best regards,
    Ismael

    #498747

    That makes sense but bear with me; I’m new at this.

    I’ve been playing around with adding media queries, and it now seems to resize OK with my browser and looks good on my iPad. However, it doesn’t work well on my iPhone. Also, is there a way to make the buttons and background images responsive? On my iPhone, the buttons are big and the background image doesn’t resize.

    Here is the code I added. Perhaps you have some suggestions to make the responsiveness better? I basically want the Slider to be 700px on a regular screen and then re-size smaller as the screen shrinks…perhaps I should try using a %?

    @media only screen and (min-width: 200px) {
    .avia-slideshow-inner {
    height: 400px !important;
    }
    .avia-slideshow {
    max-height: 400px !important;
    }
    }
    @media only screen and (min-width: 400px) {
    .avia-slideshow-inner {
    height: 400px !important;
    }
    .avia-slideshow {
    max-height: 400px !important;
    }
    }
    @media only screen and (min-width: 800px) {
    .avia-slideshow-inner {
    height: 700px !important;
    }
    .avia-slideshow {
    max-height: 700px !important;
    }
    }
    @media only screen and (min-width: 1000px) {
    .avia-slideshow-inner {
    height: 700px !important;
    }
    .avia-slideshow {
    max-height: 700px !important;
    }
    }
    @media only screen and (min-width: 1200px) {
    .avia-slideshow-inner {
    height: 700px !important;
    }
    .avia-slideshow {
    max-height: 700px !important;
    }
    }

    Thanks in advance!

    #499608

    Hey!

    Try adding this code to the Quick CSS:

    @media only screen and (max-width: 480px) {
        .avia-fullscreen-slider .avia-slideshow>ul>li {
            background-size: 100% 100%;
            background-repeat: no-repeat;
        }
    }

    That will make the slideshow image to stretch the 100% height and width of the slideshow, it will look stretched but perhaps if you reduce the height of the slider (at that screen size) you’ll get the desired result.

    Regards,
    Josue

    #1206810

    Hi, this post helps me a lot, thanks
    Can I “vertical-align: middle;” the images by adding to this … or would I need to add separate styling?
    Thanks in advance
    B

    #1207443

    Hi,

    You can only use vertical-align for inline elements, so it’s not going to work for the slider images. What are you trying to do exactly? If you don’t mind, please create a new thread and post the necessary details in the private field.

    Best regards,
    Ismael

    #1241661

    Hi,

    I have a similar question how can I have “fullscreen slider” height not 700px but 80%? If I change the 700px for 80% there is a small 20% white space below the image.

    Regards
    Ananda

    #1242346

    Hi Ananda,

    Please open a new thread and include WordPress admin login details in private so that we can have a closer look at your site.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.