Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):
Once the code is added, save and refresh the page to see if the change has been applied. In case it helps, please check this section from the documentation on CSS/Script Related. If this does not work as expected or If you have any further questions or need additional assistance, don't hesitate to write back, I'm happy to help.
The result isn't exactly what I wanted because I needed a margin around the whole box and not only the picture. I tried to combine both your code and @tahir's and with some little ajustments it looks okay, not exactly what I wanted because I wanted a margin all around the box.
With your code, the margin I get is not the same all around the picture, do you know why?
Just one more thing, the padding has a different background color from the box, how can I change that please?
Once the code is added, save and refresh the page to see if the change has been applied. In case it helps, please check this section from the documentation on CSS/Script Related. If this does not work as expected or If you have any further questions or need additional assistance, don't hesitate to write back, I'm happy to help.
Hello,
I would like to add a margin all around the product lightbox, when you click on "quick view", how can I manage that in CSS please ?
Thank you.
Hey Again,
Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):
Thanks
ThemeNectar Support Team
Thank you for your answer.
Would it be possible to use margin instead of padding ?
The padding crops my picture.
I tried to replace padding with margin in the code but nothing happens.
Thank you.
Hi there
Thanks for writing back.
To make the changes as requested, you will need to add some custom CSS code. To do this, please follow these steps:
From your WordPress dashboard, Navigate to Salient > General Settings > CSS/Script Related. In the custom code area, insert the provided CSS snippet:
Once the code is added, save and refresh the page to see if the change has been applied. In case it helps, please check this section from the documentation on CSS/Script Related. If this does not work as expected or If you have any further questions or need additional assistance, don't hesitate to write back, I'm happy to help.
Thank you @judith.
The result isn't exactly what I wanted because I needed a margin around the whole box and not only the picture.
I tried to combine both your code and @tahir's and with some little ajustments it looks okay, not exactly what I wanted because I wanted a margin all around the box.
With your code, the margin I get is not the same all around the picture, do you know why?
Just one more thing, the padding has a different background color from the box, how can I change that please?
Thanks very much.
Hi Adelinemartin,
Thanks for writing back.
Just for confirmation, would you want the margin background color to be great as is on the side ?
I look forward to your response.
Thank you @judith, yes exactly this color+even margin!
I made a collage to show you how I picture it.
Thank you!
Attached files: capture3.JPG
Hello Adelinemartin,
Thanks for writing back.
To make the changes as requested, you will need to add some custom CSS code. To do this, please follow these steps:
From your WordPress dashboard, Navigate to Salient > General Settings > CSS/Script Related. In the custom code area, insert the provided CSS snippet:
Once the code is added, save and refresh the page to see if the change has been applied. In case it helps, please check this section from the documentation on CSS/Script Related. If this does not work as expected or If you have any further questions or need additional assistance, don't hesitate to write back, I'm happy to help.
This works fine, thanks.
Hello Adelinemartin,
I'm happy that we could assist you! If you haven't already, please consider sharing your experience by leaving a review on ThemeForest.
If you've enjoyed Salient, be sure to check out Nectarblocks, our latest innovation for building websites visually with WordPress.
Your feedback is valuable to us and greatly appreciated!
Should you have any further questions or encounter any difficulties along the way, please don't hesitate to reach out.
Best regards,