Site logo

[Resolved] Squeezed Images (sometimes)

Home Forums Support [Resolved] Squeezed Images (sometimes)

Home Forums Support Squeezed Images (sometimes)

  • This topic has 4 replies, 2 voices, and was last updated 10 years ago by Tom.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #211161
    achims

    Hello,

    with the Microsoft Edge Browser some images are squeezed. It seems to be an issue with the css:

    /*media all*/
    .size-auto, .size-full, .size-large, .size-medium, .size-thumbnail {
    max-width: 100%;
    height: auto;
    }

    /*media all*/
    img {
    max-width: 100%;
    height: auto;
    }

    By disable “height: auto” the images show as they should.

    Do you have an idea to fix this? Thanks a lot!
    Generatepress is awesome!

    Best regards,
    Achim

    #211163
    achims
    #211255
    Tom
    Lead Developer
    Lead Developer

    Seems to be a bug in Edge: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/7778808/

    You can work around this by adding this CSS:

    .size-auto, .size-full, .size-large, .size-medium, .size-thumbnail {
        max-width: 100%;
        height: initial;
    }
    
    img {
        max-width: 100%;
        height: initial;
    }
    #211327
    achims

    Thanks a lot. It works with “height: initial;”

    I gave you a five Star Rating and want to say thanks for your work and your great theme!

    #211352
    Tom
    Lead Developer
    Lead Developer

    Thanks so much for that! I really appreciate it 🙂

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