Home › Forums › ZA WordPress Theme › Add a spacing between images in portfolio page
Tagged: portfolio images spacing
- This topic has 12 replies, 4 voices, and was last updated 5 years, 6 months ago by
alysiasimone.
-
AuthorPosts
-
March 10, 2016 at 6:06 am #10138
Hello!
How i can add a spacing between images in single portolio page? By default the images are merged.
It’s possible with css code?
ThanksMarch 10, 2016 at 1:52 pm #10139Hello,
Please login wp-admin, go to Appearance / Theme Options / Custom Css
Paste the style code to Custom Css:.single-format-gallery .list-layout-inside { margin: 20px 0 0 20px; } .single-format-gallery .list-layout-col { margin: -20px 0 0 -20px; }Cheers!
Bwsm – uiueux.com
March 10, 2016 at 7:33 pm #10140Thanks! It works fine )))
November 11, 2016 at 10:24 am #11397Hi,
Thanks for the CSS code, works as it should be on my page as well. I have a different problem tho as I cannot centre images in single portfolio page, it always goes either to left or right. Could you please help?
Best
November 14, 2016 at 1:55 am #11402Hi, welcome, please leave the single portfolio page url you talked, I’ll check it.
November 14, 2016 at 12:14 pm #11404Hi, sample portfolio page: http://michiou.com/rue-des-renaudes/
Many thanks
November 15, 2016 at 1:41 am #11408I checked your site, did you change the image width as 60%? The origin design is 100%
.gallery-images-img { width: 100%; }I think maybe you want the image list more narrow?
Please login wp-admin, go to Appearance / Theme Options / Custom Css
Paste the style code to Custom Css:.list-layout-inside .lightbox-item { display: block; text-align: center; }November 19, 2016 at 12:40 pm #11432Many thanks. Everything is centred now, so that’s cool. And yes, I’ve changed image width to 60% as I prefer to have smaller pics on this pages.
There’s another problem with main portfolio page (http://michiou.com/) as I cannot change the colour behind category titles (see attachment). Could you please direct me to the place where can I change it into the same colour as background?
November 19, 2016 at 2:05 pm #11438The color is from : Center / Schemes / Auxiliary Color, you could change it.
Or
You could use custom css only for this area:
.portfolio-standatd-tit-wrap:before { background-color: #EEEEEE; }
Off course, you can change the color valueNovember 20, 2016 at 12:46 pm #11440Thanks, first method works perfectly:)
Best
December 13, 2020 at 2:27 pm #23372hello – i’ve used this code to add space between the vertical rows in the porfolio images and it works well:
.single-format-gallery .list-layout-inside {
margin: 20px 0 0 20px;
}
.single-format-gallery .list-layout-col {
margin: -20px 0 0 -20px;
}I now need to add the same space between the same portfolio images but in the horizontal rows. is there a code for that?
December 14, 2020 at 1:29 am #23376Hi,
The CSS will work only for horizontal spacing:
.single-format-gallery .list-layout-inside { margin-right: 20px; } .single-format-gallery .list-layout-col { margin-right: -20px; }Regards
December 14, 2020 at 1:40 am #23380thanks but this code does do anything. nothing has changed.. is there another way to add space between each horizontal row in gallery images on a post?
-
AuthorPosts
- You must be logged in to reply to this topic.
