Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1491607

    Hi,

    I want a background image in a colour section to extend full screen width horizontally and not be cropped vertically. If I set a minimum height, the image does not cover full screen width. If I don’t, it is cropped vertically.

    http://www.cuisine-chinoise.org

    Best regards,
    Serge

    #1491623

    Hey photographie-tous-azimuts,

    Thank you for the inquiry.

    This is possible by setting the background image size to 100%, but the image may become distorted. We recommend resizing the image to have a 16:10 aspect ratio, or as close as possible to the aspect ratio of the container you plan to use. Then set the Styling > Background Image > Background Repeat to “Stretch to fit”. Unfortunately, the image may still be partially cropped on some screen sizes.

    Screenshot-2025-11-21-at-4-26-13-PM

    Best regards,
    Ismael

    #1491652

    Thanks Ismael,

    Is it possible to fix it with custom CSS to always show the whole image and get it smaller vertically on wide screens? I don’t want the image take too much space vertically. This is why it has wide panoramic proportions.

    Best regards,
    Serge

    #1491716

    Hi,

    Thank you for the update.

    Have you tried using the Fullwidth Slider? You can also try this css to limit the size of the color section on smaller screens.

    @media only screen and (max-width: 768px) {
    
      /* Add your Mobile Styles here */
      #top .avia-section.av-zjsv-901082093e6d72f3482787541e1c8070 {
        max-height: 200px;
        background-size: contain;
      }
    }

    You may also need to adjust the elements inside the color section. We recommend applying custom css class names to the elements inside the text block, as they are custom coded, so you can modify their style for smaller screens.

    Best regards,
    Ismael

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