Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #580439

    Hi,

    I would like to have a border around the thumbnails in Masonry Gallery. The image should align to the text below. If you look at the provided screenshot you can see what i mean in the picture to the left (i just made a border around that one to show what i want, that solution is not good because it will be different in different resolutions).

    I hope that this could be done in Quick CSS? I already made a bigger white space around the images/text in the Quick CSS, i found that here already. :)

    Thanks in advance!

    Screenshot

    #580812

    Hi Mathias,

    Could you provide us with a link to the site in question so that we can take a closer look please?

    Best regards,
    Rikard

    #580868

    Thanks for your reply. The site is not online, thats why i posted a screenshot. But i post another one to explain it the best way i can. Please ask if there is something that is unclear.

    The image to the right, with the red border, is how Masonry Gallery displays the images now. It fills up the area above the text, and there is no grey border around it.

    The image to the left, with the green border, is what i want. It only looks that way now because i made a grey border around that image before uploading it to the gallery. The red line just shows where it really is now. I also made a green line down under the image to show that i would like the image to align with the text below.

    So i wonder, is it possible to do this in the Quick CSS? (The reason i want to do it is that if i use a border the image will not align with the text below in all screen-resolutions.)

    Screenshot

    For example, i used this code that i found here to increase the white space between images:

    .av-large-gap.av-flex-size .av-masonry-entry .av-inner-masonry {
    margin-right: 40px;
    margin-bottom: 40px;
    }
    
    .av-masonry-container {
    width: 103.5%;
    }

    Is there a similar way to do it with the thumbnail/image in this case? With pixels / percent in the Quick CSS?

    #581794

    Any suggestions?

    #582762

    Bump.

    #584083

    Hi!

    Please try adding following code to Quick CSS

    .av-masonry-image-container img {
        padding: 20px;
    }

    To provide you an accurate custom CSS code, we are going to need to see your live site :/

    Cheers!
    Yigit

    #584168

    Working exactly as i wanted Yigit, thank you so much! There is just one thing now. The area around the image is white (as the rest of the page, see the screenshot). Is it possible to make that area grey as it is around the text?

    Thank you!

    )” />)

    #584174

    Hey!

    Can you please use the code as following instead

    .av-masonry-image-container img {
        border: 20px solid grey;
    }

    and if that does not help, following could

    .av-masonry-image-container {
        background: grey;
    }

    Best regards,
    Yigit

    #584226

    Almost there :)

    I tried both and i get this dark grey color.

    #584232

    Hi!

    Which one do you like the most? :) Depending on that, you should replace “grey” with hex value of that color. I am guessing replacing it with “#e2e2e2” would work fine :)

    Best regards,
    Yigit

    #584236

    Great, you are the best! I thought maybe i could change it to the color code. I ended up with this and it´s perfect.

    .av-masonry-image-container img {
        padding: 20px;
        background: #f8f8f8;
    }
    

    Thanks a lot for your help, i really appreciate it!

    #584240

    Hey!

    You are welcome!
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Regards,
    Yigit

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Border on thumbnails Masonry Gallery’ is closed to new replies.