Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #1160434

    Hi there,
    I saw a thread on this in an earlier post but the person posting solved it themselves so there was no solution presented :(

    I’m using the masonry gallery on a page and it lines up perfectly on mobile devices, and iPads. I have a page containing 5 portfolios lined up on 2 rows. When I view the page on my laptop the fifth portfolio doesn’t align left on the second row – it sits directly under the third portfolio. This isn’t the case on an iPad or mobile device. The reason for this appears to be down to the first 2 portfolios having titles that stretch over 2 lines whereas the others (on my laptop at least) on sit on 1 line. Is there a way to make it sit on the second row and fully align left? I’ve tried using grid, perfect masonry etc.. but they either cover the image with the title too much or crop/stretch the image. I’m trying to get a visible image with the title underneath visible so users can select the named portfolio.

    Hope this makes sense.

    #1160933

    Hey Valinsy,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #1160938

    Hi Victoria,

    Thanks for coming back – credentials attached.

    #1162204
    This reply has been marked as private.
    #1162738

    Hi,

    I loaded the page but I didnt saw the issue so can u show with a screenshot how we should be handling this please?

    Best regards,
    Basilis

    #1162970

    Hi Basilis,

    I’m not sure if I’ve done this correctly but I’ve uploaded a screenshot here.

    Hopefully this works
    Thanks

    #1163192

    Hi Valinsy,

    Best regards,
    Victoria

    #1163335

    Hi Victoria,

    Thanks for your help
    Grace

    #1163585

    Hi Valinsy,

    Best regards,
    Victoria

    #1164024

    Hi Victoria,

    Many Thanks
    Valinsy

    #1164514

    Hi Valinsy,

    Best regards,
    Victoria

    #1164824

    Hey,

    I tried checking your site but i am blocked as well. I am located in Lithuania. Could you please temporarily disable IP restriction?

    Best regards,
    Yigit

    #1164880

    Hi Yigit,
    You should have access now.

    Best Regards
    Valinsy

    #1165401

    Hi,

    Thank you for the inquiry.

    Yon can apply a minimum height to the title or content container so that the items will still be perfectly aligned even if the title of an item is not long enough to create another line.

    @media only screen and (max-width: 1366px) {
        .av-inner-masonry-content {
    	min-height: 79px;
        }
    }

    Best regards,
    Ismael

    #1166848

    HI Ismael,
    Thanks for this – I’ve been playing around with this code for a few days and while it works in some instances – I just have to be a bit more consistent in the length of the names because on some containers there were a lot of extra space around the text.

    My problem now is that while this works better on the events page where the titles are longer, on the actual portfolios (where the titles are a short number reference) there is too much space surrounding the text. (especially on phones)

    Is there an extra piece of code I could include that allows me to define the max height on the containers on the portfolio pages on mobile devices only?
    I’ve added the ID event-gallery to the Masonry Gallery on the portfolio pages to identify the containers I need to control but I don’t know how to phrase the code in the CSS.

    Many Thanks
    Grace

    #1168030

    Hi,

    Thank you for following up.

    Yes, you can style of the content container differently on mobile devices. Try this code.

    @media only screen and (max-width: 767px) {
        .av-inner-masonry-content {
    	min-height: 49px;
        }
    }
    

    This should work for mobile phones.

    Best regards,
    Ismael

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