[Resolved] Best way to display hero image on the front page for both desktop and responsive

Home Forums Support [Resolved] Best way to display hero image on the front page for both desktop and responsive

Home Forums Support Best way to display hero image on the front page for both desktop and responsive

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

    Hi,

    On the front page we use a hero image. This image is automatically resized depending on the device.
    On a desktop the picture is shown full (all 5 people are visible). When the site is visited on a mobile, the picture is resized but also the sides of the picture are cut away (as a result two collegues on both sides are disappeared).

    How can I solve this?

    Thanks.

    #2072907
    Ying
    Staff
    Customer Support

    Hi Henk,

    You can try this CSS so on mobile the image will show full:

    @media (max-width: 768px) {
    .page-hero {
        background-size: contain;
    }
    }

    I tested it, but it doesn’t look good with your current font size/paddings setting.

    I think the better way would be playing around with the top/bottom paddings within the header element.

    #2073041
    Henk

    Thanks Ying,

    I’ll have a look at it.
    How I can solve it.

    -Henk

    #2073607
    Ying
    Staff
    Customer Support

    No problem 🙂

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