Archived topic
image getting placed inside paragraph tag?
3 replies · Started by Craig on July 31, 2017
Hello,
I'm not sure why this is happening - may not even related to GeneratePress.
I've added an image inside my content (aligned right), but when I inspect the page, the image is getting placed inside a P (paragraph) tag. This is adding unwanted margins above my content.
You can see it here...
http://stannesschool.wpcatholicsites.com/programs/pre-k-3s/
Is GP doing this or should I look for the answer elsewhere?
Thanks!
CB
Hi Craig,
This CSS should remove the margin for you:
.entry-content {
margin: 0;
}
Let me know if this is what you are after.
Hi Leo,
Thanks for taking a look. I figured it out when looking at it the text editor. There was a line break I missed that was inserting the P tag around my image.
Thank you!
Craig
Ahh glad you found the problem!