MrsMarple Posted November 14, 2023 Share Posted November 14, 2023 Hello, I am new to the forum, I have already found some useful custom CSS for my site but I am still struggling with unwanted spaces between gallery blocks on pages. I would appreciate a custom CSS for them, thank you very much in advance! Pages where I have difficulties removing the space are as follows: https://www.palmamondovics.com/harvest-time https://www.palmamondovics.com/flora At the second one I am suing differently styled galleries like masonry and grid and I would like the same amount of space between galleries as it is between the images. Thank you again! Link to comment
SaranyaDesigns Posted November 14, 2023 Share Posted November 14, 2023 @MrsMarple try this in your custom css: .gallery-masonry[data-width="full"] { padding: 5px 4vw !important; } Link to comment
Web_Solutions Posted November 14, 2023 Share Posted November 14, 2023 1 hour ago, MrsMarple said: Hello, I am new to the forum, I have already found some useful custom CSS for my site but I am still struggling with unwanted spaces between gallery blocks on pages. I would appreciate a custom CSS for them, thank you very much in advance! Pages where I have difficulties removing the space are as follows: https://www.palmamondovics.com/harvest-time https://www.palmamondovics.com/flora At the second one I am suing differently styled galleries like masonry and grid and I would like the same amount of space between galleries as it is between the images. Thank you again! Add these code on Custom CSS panel in Website > Utilities > Website Tools > Custom CSS. .gallery-masonry { padding-top: 0 !important; padding-bottom: .8vw !important; } #page section:first-child .gallery-masonry { padding-top: 4vw !important; } #page section:last-child .gallery-masonry { padding-bottom: 4vw !important; } Kobir 1 If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible. Link to comment
MrsMarple Posted November 14, 2023 Author Share Posted November 14, 2023 1 hour ago, SaranyaDesigns said: @MrsMarple try this in your custom css: .gallery-masonry[data-width="full"] { padding: 5px 4vw !important; } This one for some reason did not work for me, maybe there was something else that overwrote it but thank you!! Link to comment
MrsMarple Posted November 14, 2023 Author Share Posted November 14, 2023 (edited) 1 hour ago, Web_Solutions said: Add these code on Custom CSS panel in Website > Utilities > Website Tools > Custom CSS. .gallery-masonry { padding-top: 0 !important; padding-bottom: .8vw !important; } #page section:first-child .gallery-masonry { padding-top: 4vw !important; } #page section:last-child .gallery-masonry { padding-bottom: 4vw !important; } Thank you very much, your code fixed the harvest time page but not the second one (/flora in url but titled plants). If you would have some other ideas I would highly appreciate it thanks a lot! Edited November 14, 2023 by MrsMarple to be more polite Link to comment
Solution Web_Solutions Posted November 14, 2023 Solution Share Posted November 14, 2023 5 hours ago, MrsMarple said: Thank you very much, your code fixed the harvest time page but not the second one (/flora in url but titled plants). If you would have some other ideas I would highly appreciate it thanks a lot! Replace the previous code with the code below. .gallery-masonry, .gallery-strips, .gallery-grid { padding-top: 0 !important; padding-bottom: .8vw !important } #page section:first-child { .gallery-masonry, .gallery-strips, .gallery-grid { padding-top: 4vw !important } } #page section:last-child { .gallery-masonry, .gallery-strips, .gallery-grid { padding-bottom: 4vw !important } } Kobir 1 If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible. Link to comment
MrsMarple Posted November 15, 2023 Author Share Posted November 15, 2023 9 hours ago, Web_Solutions said: Replace the previous code with the code below. .gallery-masonry, .gallery-strips, .gallery-grid { padding-top: 0 !important; padding-bottom: .8vw !important } #page section:first-child { .gallery-masonry, .gallery-strips, .gallery-grid { padding-top: 4vw !important } } #page section:last-child { .gallery-masonry, .gallery-strips, .gallery-grid { padding-bottom: 4vw !important } } It worked!! Thank you very much Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment