[Resolved] background image not good in iPad

Home Forums Support [Resolved] background image not good in iPad

Home Forums Support background image not good in iPad

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #225729
    Ali

    Dear Tom,
    Hope you are fine.

    Please have a look here:
    http://www.narenj-toranj.ir

    In desktop, everything is very good. But when I open the website in iPad, (both vertical and horizontal view), the background image is not good.

    Please help.

    Cheers
    Ali

    #225841
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    What about it isn’t good?

    #226068
    Ali

    In desktop, the picture covers the width of screen perfect. But in iPad, I can only see a part of picture as a background. It seems that the picture stretched.

    Here is a picture that shows the difference:
    http://narenj-toranj.ir/wp-content/uploads/2016/09/screenshot.jpg

    Thanks.

    #226174
    Tom
    Lead Developer
    Lead Developer

    Unfortunately that’s just how fixed backgrounds scale.

    You could set the size to “Contain”, but it probably won’t look very good on desktop.

    A solution is to add a different background image with a better aspect ratio on mobile:

    @media (max-width: 900px) {
        body {
            background-image: url( URL TO YOUR IMAGE );
        }
    }
    #226252
    Ali

    Thanks for help ๐Ÿ™‚

    #226262
    Tom
    Lead Developer
    Lead Developer

    No problem ๐Ÿ™‚

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