Using CSS to modify images (padding, specifically) in WordPress
in WordPress, is there any CSS styling or something of that nature I can use to add some padding around the image? Everything else seems to be fine right now, but the image runs right up against the text and I can't figure out how to get a border there.
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?If you can try adding this to your CSS in the Wordpress theme it should fix the problem:
.zemanta-img img {padding-left:10px;}
.wp-caption-text {padding-left:10px;}
Where there is 10px you can adjust it so that it fits your theme specific, depending on how much space you want. If you also want top and bottom spacing you can add just padding:10 px; and it will add it on all 4 sides.
I’m confident
1 person says
this answers the question
-
Inappropriate?Modify the HTML in the code for the post after Zemanta inserts its image. Insert your padding into "div style="
-
Inappropriate?Peter, does not work for me. Too much layering of divs. Nothing affecting my margins or padding.
Egelwan, I am a programmer and could do what you suggest (modify HTML code), but most people can't and shouldn't. Must be automated.
Coders -- put ability to configure this in interface.
I’m frustrated
-
Thanks for the feedback! I will let the team know :)
xoxo
Tilly McLain
community manager, Zemanta
Loading Profile...






