Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #853899

    I want my images in my horizontal gallery to appear in their original aspect ratio on desktop and mobile. Right now it looks great on desktop, but images are cropped in mobile. How do I make the gallery appear the same in mobile as desktop? I don’t want my images cropped.

    http://sophialemon.com/photography-studio

    #853954

    Hey Sophia,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child theme’s style.css file:

    @media only screen and (max-width: 480px) {
    .responsive .av-horizontal-gallery-img {
        width: auto;
        height: 100%;
        transform: none;
    }}
    

    Best regards,
    Yigit

    #853966

    There has definitely been some progress! There just seems to be a problem with the vertical alignment. Suggestions? :)

    sample problem

    #854276

    Hi lemosop,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    @media only screen and (max-width: 767px) {
      .avia-section-huge .content {
        padding-top: 50px;
        padding-bottom: 10px;
    }
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #854411

    Hey Victoria,

    I tried that and removed it as it did not solve the problem. My horizontal gallery images are still appearing low in the box on mobile. If you have a solution to this please let me know.

    #854477

    Hi,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    @media only screen and (max-width: 479px) {
    .responsive .av-horizontal-gallery-img {
      top: 0;
    }
      .avia-section-huge .content {
        padding-top: 50px;
        padding-bottom: 30px;
    }
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #854482

    OK! That definitely solved that problem, Victoria! Thank you. The only remaining issue is that when I turn my phone horizontally all images are still cropped. hahaha

    I’m sure I just need to add another max-width? Let me know…

    #854502

    Hi lemosop,

    So change the media query
    @media only screen and (max-width: 479px) { to @media only screen and (max-width: 767px) {

    Let me know how this works for you.
    Best regards,
    Victoria

    #854513

    AMAZING! PERFECT! BRILLIANT! Thank you so much, Victoria. :)

    #854759

    Hi,

    Great, glad we could help. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

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