Archived topic
Adjusting space between image and text in post
18 replies · Started by Amit Nair on March 23, 2018
.site-content img {
padding: 100px 0px;
}
This code works, but I only want it to work in my blog posts, not on my feature images. Is there a way to target this code to my blog posts only?
Thanks,
C
Any chance you can link me to the page/post in question?
Feel free to open a new topic so you can use the private URL field.
Thanks!
Hey, Leo, the page is https://smartteacherblog.com/?page_id=34
The photo on this page gets very close to the text when I am on my phone. I added the code above and it fixed the issue, but it also disrupted all of the photos on my home page, which was a huge no-no.
I think the fix for this issue is to have the padding on the text instead of on the img.
What do you think?
C
We will need to adjust the CSS.
Can you actually open a new topic?
Your issue is a bit different than the original post here.
Let me know :)