Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #590828

    Hi there

    Im trying to change the ratio for the images that are displaying in a masonry showing my portfolio items. The featured images are cropped.

    I found this piece of code that does what I want:

    .av-fixed-size .av-masonry-entry .av-inner-masonry-sizer {
    padding-bottom: 66%;
    }

    In that it resizes images to close to 16:9

    however this css doesnt work for portfolio items that are tagged
    portrait, or landscape or both.

    Ideally i’d like all the image to have a 16:9 ratio as it’s mostly stills of videos we’ll be displaying.

    Can you help?

    Kindest
    Mick

    #590966

    Hi,

    Can you post the link to your website please?

    Regards,
    Josue

    #591046

    Link below

    id also like to have a hover effect of a white box over each image
    but the padding affects this too.. ideally a white box centered with a
    15px padding around the caption.

    thanks for the quick reply

    #591071

    Yeah i can see what you’re trying to do here, thing is, using a pseudo element is limiting for what you want to achieve, i’ve managed to find a better solution.

    1. Change your Masonry settings to the following – http://screencast.com/t/UTNIf4Re0

    2. Remove your custom Masonry CSS code and paste this instead:

    .avia_desktop.avia_transform3d .av-caption-on-hover .av-masonry-entry.av-masonry-item-with-image .av-inner-masonry-content{
        transform: none;
        -webkit-transform: none;
        width: 100%;
        height: 100%;
        bottom: 0;
        display: table;
        text-align: center;
        padding: 20px;
        background: transparent;
    }
    
    .av-inner-masonry-content-pos {
        display: table-cell;
        vertical-align: middle;
        background: white;
    }
    
    .avia-arrow{
        display: none;
    }
    #591123

    Thank you that’s a much better solution to that problem.

    Any progress or advice on the first part of the problem

    Im trying to change the ratio for the images that are displaying in a masonry showing my portfolio items. The featured images are cropped.

    I found this piece of code that does what I want:

    .av-fixed-size .av-masonry-entry .av-inner-masonry-sizer {
    padding-bottom: 66%;
    }

    In that it resizes images to close to 16:9

    however this css doesnt work for portfolio items that are tagged
    portrait, or landscape or both.

    Ideally i’d like all the image to have a 16:9 ratio as it’s mostly stills of videos we’ll be displaying.

    #591135

    Try selecting Flexible Masonry or Prefect Grid as the Size options.

    Best regards,
    Josue

    #591519

    But i need to be able to specify landscape or portrait modes or both.

    #592297

    Hm, not sure if i understand what you’re trying to do here, do you want them all as portrait or landscape? or some landscape and some portrait?

    Best regards,
    Josue

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