Tagged: 

Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #1254663

    Hi,

    I try to combine static pages with specific latest post. The style of the Masonry Element fits best to start with. But when I put the Masonry Element in a 1/2 Layout Element the size of the pictures is totally damaged and way smaller than when I put it e.g. in a Color Section.

    Any idea what cause the problem?

    Thanks

    #1255039

    Hey Patric,

    The masonry calculates the width of the parent container and renders images accordingly, so a 1/2 element is kind of too small for it. You can try the 2/3 element, for example, or 1/1.

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

    #1255205

    Hi Victoria,
    thanks for your reply.

    I found nearly a way to build what I want to reach. See the screenshot. I used the Masonry Gallery with Flexible Masonry in a color section and added the custom css `/*Masonry Grid Bild voll gefüllt*/
    .av-masonry-entry.isotope-item .av-masonry-image-container img {
    width: 100%;
    }`
    to fully fill the pictures.

    But I want to allign the grid in height perfect. Space is 15px and I already prepared the pictures to have the right size. But with different screen sizes the allignment in height changes.

    Is there a way to stop that? Or is there another way to build a perfect grid layout with a background image linking to a specific url (and the hover effects from masonry grid) and text over it I also can link to the same page like the picture?

    Best regards,
    Patric

    #1255230

    See the grid in the link….Something like this I would like to build

    #1255973

    Hi,

    Thank you for the update.

    The grid like element from the other site should be possible with the masonry gallery but you might have to control the width or height of each grid items manually using css because by default, the items are set to automatically respond to the size of the parent container or the view port.

    Where can we check the page with the masonry gallery?

    Best regards,
    Ismael

    #1255976

    Hi Ismael, thanks for the reply. The current grid I’ve build is behind a stage plugin in wordpress. Not shure if a temporary login will work for that, but you can try. Please let me know if you can login.

    On the startpage I’ve now built two versions I play around with. First with masonry grid and second with a grid row to build that look I want.
    I would prefer the masonry. Because it’s also easier to handle and looks a bit more what I’m looking for.

    If only the grid row can be used at the end it would be great if there’s a possibility to scale the picture only inside the containers on hover (no text scale and as mentioned the container should not be scaled too). You will see if you can login.

    In custom css I already try to address some things. Please scroll down to /*Content Styles*/ and you will find the latest changes for the startpage.

    Thanks

    #1257482

    Hi,

    Thank you for the update.

    We could apply the zoom effect to the masonry image with this css code.

    .av-masonry-entry.isotope-item .av-masonry-image-container:hover img {
    	transform: scale(1.5);
    }

    And for the image element, try this one.

    .avia-image-container.av-hover-grow, .avia-image-container.av-hover-grow .avia-image-container-inner, .avia-image-container.av-hover-grow .avia-image-overlay-wrap a.avia_image {
    	overflow: hidden !important;
    }

    Best regards,
    Ismael

    #1257531

    Hi Ismael, thanks for the reply. I think there was a misunderstanding now.

    For the masonry gallery I’m searching a way to keep the elements aligned in height as it is build now but with a perfect grid.
    I mean in general it would be cool to be able to build perfect grids with more interaction possibilities. It’s sometimes a bit hard in enfold if you’re not using only columns with the same height, like now in my case.

    Or, if that’s not working, second possibility is to build the look with the grid element. I think your provided css code for the image element is already build in the image settings. I could change that without your code. What I would like to have there is, that only the picture zooms within the container and not the text too.
    And to complete the look. I need the same styling/effect for the background image in the first column. Here I could only zoom the whole container and was not able to address only the background image just zooming inside the container.

    Could you help me with this? The login link above should still be active.

    Thanks

    #1258974

    Hi,

    What I would like to have there is, that only the picture zooms within the container and not the text too.

    The zoom effect is directly applied to the column container where the background is attached, so it will also affect the content inside the column. Have you tried doing it with an Image element?

    Best regards,
    Ismael

    #1259200

    Hi Ismael, I’ve found a new way to build better what I want, using the portfolio entries and the masonry element. But when I build it, the settings are a bit strange. I don’t no why. I choose 2 columns on desktop width and the second and third entry are moving under the first. I choose 3 columns there and I see 2 columns as result. I also need a tip how to handle the picture sizes with the picture tags. Because first I want the 2 columns in the middle, now it’s more 1/3 and under screen width 990px the grid is not alligned anymore. I hope it’s just a sizing or tag problem.

    Can you help here, please?

    And is there a way to say here that every entry picture should switch to 16:9 when changing to mobile?
    Link and login are again in private content.

    I know it’s a totally new approach and now maybe more work. But the other approaches didn’t work.

    Thank you.

    #1260047

    Hi,

    Using columns and image elements is probably a much better and more simple approach. You just need to make sure that the height of the portrait image is twice of that of the landscape ones plus the spaces. All images should have the same width.

    Please check the screenshot below.

    // https://imgur.com/4luQddt
    // https://imgur.com/6ANnYFV

    There are two 1/2 columns in a row, and the Row Settings > Row Layout > Equal Height Columns is enabled. We could remove the default column spaces and use css to control it manually but in this example, we are using the default spaces and added this css code to adjust the width and size of the space in between.

    #top div .av_one_half {
    	margin-left: 10px;
    	width: calc(50% - 20px);
    }
    
    #top div .av-flex-placeholder {
    	width: 10px;
    }

    Best regards,
    Ismael

    #1260093

    That did it nearly. You’re right, working with the image element is much easier.

    I added your css and placed new pictures as described but in my needed sizes. Screen width is 1600 and so my picture sizes are now 800×800 and 800×390.

    But the bottom changes a bit when I change the sreen size in the dev tools. So at screen width between 880 and 950 it looks perfect. Am I’m going lower the right height is a bit more than on the left side. Am I’m going higher the right height is a bit lower than the hight of the left side. The bottom edge is walking.

    I made 2 screenshots (see private content). It’s a bit frustating. I also tried to find out if there are still some auto margins inside an element. Found one in the avia image container, but that didn’t solve the problem.

    I hope you still have an idea.

    On top: Do you know how I can adress you custom css via a custom class? I already tried to place a custom class in your css and the columns, but that didn’t work. The best would be if I can extend the existing css code with your customisations. I already know how to place a custom css class, but I don’t know how it might work adressing your specific code.

    Best regards

    #1260907

    Hi,

    Thank you for the screenshots.

    Yes, it is quite weird. What happens when you adjust the width of the landscape images from 600px to 605px or wider? Adjusting the width should also affect the height of the images as it maintains the aspect ratio.

    Best regards,
    Ismael

    #1260915

    Hi, same problem.

    Found something strange (see screenshot). Seems as it is a after section or something else. I don’t know but this might be the problem. It only appears at the bottom of the right picture. And it’s changing it’s height.

    #1261820

    Hi,

    Based on the screenshot above, looks like there is a padding below the flex column but we do not see it on our end and the element padding is actually set to default. Please try to keep the width of the portrait image to 800px, and only adjust or increase the width of the landscape ones to 810px.

    Best regards,
    Ismael

    #1261844

    Hi Ismael,
    I made alle pictures new from the scratch as I also changed the content width to 1300. I tried now for the portrait 650×650. For the landscape I tried 650×325, 650×320, 650×315.

    650×320 fits good as long I don’t change the screen width under 1218px. After that the sizes of the images don’t change equally.

    To controll that non of my custom css is responsible for that, I also deleted that. But that error still exists.

    So I checked a bit more and found out that both flex_column av_one_half are not scaled equally. At screen width over 1218 the first column is 595x596px and the second is 595×595.84.
    At screen width 1024 the first column is 457×460 and the second is 457×459.7.
    At screen width 768 the first column is 329×334 and the second is 329×333.94.

    I tested something more:
    When I cange anything in your code part:
    #top div .av_one_half {
    margin-left: 10px;
    width: calc(50% – 20px);
    }
    nothing changes. I also tried the code with !important. Also nothing. Maybe that’s the problem?

    #1262268

    Hi,

    Have you tried defining the height of the second column manually? Thee difference in height is less than a pixel, so it is probably not noticeable. If it is, you could manually define the height of the second column using css and use css media queries to adjust the height value on different screen sizes.

    Best regards,
    Ismael

    #1262300

    Hi Ismael…thanks for your help but I deleted the changes and rethink my design or search for another solution. The one pixel wasn’t my problem but the growing space between the columns. I don’t want to need to address a basic in design like the grid with custom css when using enfold.

    As everything seems to be build from the scratch I think it’s a bug in the builder. Maybe you guys can check that and if it’s found, update it with a coming release.

    Best regards

    #1263157

    Hi,

    Thank you for the info. Let us know if you need any help regarding the new design, or if we could still assist you with the previous implementations. As it will certainly be off the original topic, we will close this thread for now. Please do not hesitate to open another if you need anything else.

    Have a nice day.

    Best regards,
    Ismael

Viewing 19 posts - 1 through 19 (of 19 total)
  • The topic ‘Masonry Element Sizing’ is closed to new replies.