[Resolved] Center Justify section images

Home Forums Support [Resolved] Center Justify section images

Home Forums Support Center Justify section images

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #204644
    Joe

    Hey All,

    Just wondering if anyone has figured this out. I’m using sections with background images on the front page of my site. However I’m finding on iPhone6 size screens they are not centre justified, meaning it shows an odd bit of the image.

    I’d be interested to know if anyone has figured this out or knows of the controls for this in the CSS?

    Website (Temp URL) is team5hack.uk for reference.

    #204711
    Tom
    Lead Developer
    Lead Developer

    Hmm, give this CSS a try:

    .generate-sections-container {
        background-position: center center;
    }

    However, all of your image won’t show on mobile – that’s just the way CSS backgrounds work with aspect ratios I’m afraid.

    #204719
    Joe

    Thanks Tom! I understand it needs to scale the image, but when you are using a photo normally the middle has the main subject so this works much better I only (well for my current use case!)

    #204773
    Tom
    Lead Developer
    Lead Developer

    No problem! Glad it’s working ๐Ÿ™‚

    #318130
    Neil

    Hi Tom,

    It would be nice if this functionality was on the GUI for the section background and we could set it on a per image basis. Not all of the images I’m using have the main point of focus in the centre.

    For now though, this CSS is great, thanks.

    Neil.

    #318223
    Tom
    Lead Developer
    Lead Developer

    I agree – it’s on the road map ๐Ÿ™‚

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