-
AuthorPosts
-
February 9, 2016 at 4:18 pm #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!
February 10, 2016 at 6:08 am #580812Hi Mathias,
Could you provide us with a link to the site in question so that we can take a closer look please?
Best regards,
RikardFebruary 10, 2016 at 7:49 am #580868Thanks 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.)

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?
-
This reply was modified 10 years ago by
Mathiaslarsson.
February 11, 2016 at 6:15 pm #581794Any suggestions?
February 13, 2016 at 6:21 pm #582762February 16, 2016 at 11:44 am #584083Hi!
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!
YigitFebruary 16, 2016 at 1:46 pm #584168Working 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!
)” />)February 16, 2016 at 1:54 pm #584174Hey!
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,
YigitFebruary 16, 2016 at 3:28 pm #584226Almost there :)
I tried both and i get this dark grey color.
February 16, 2016 at 3:34 pm #584232Hi!
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,
YigitFebruary 16, 2016 at 3:45 pm #584236Great, 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!
-
This reply was modified 10 years ago by
Mathiaslarsson.
February 16, 2016 at 3:51 pm #584240Hey!
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 -
This reply was modified 10 years ago by
-
AuthorPosts
- The topic ‘Border on thumbnails Masonry Gallery’ is closed to new replies.
