Image Padding
-
For some reason, I can’t seem to get any padding on my captioned images in my posts. I have the following code in style.css
img.alignright {float:right; padding: 4px; margin: 0 0 0 4px; display: inline;}
img.alignleft {float:left; padding: 4px; margin: 0 4px 0 0; display: inline;}
img.aligncenter {display: block; margin-left: auto; margin-right: auto}
a img.alignright {float:right; padding: 4px; margin: 0 0 0 10px; display: inline;}
a img.alignleft {float:left; padding: 4px; margin: 0 4px 2px 0; display: inline;}
a img.aligncenter {display: block; margin-left: auto; margin-right: auto}
so whenever there ISN’T a caption it works exactly how i want it to. Yet when I add a caption and I designate the image as whatever it should be (alignright, alignleft) the text in my article completely ignores the padding. I check it with firebug, the browser sees the padding, the text just ignores it.
I thought maybe if I manipulated the caption css:
.wp-caption-text {
vertical-align:top;
text-align:center;
font-style:italic;
font-size:12px;
padding: 0 0 2px 3px;but that didn’t seem to fix anything.
Does anyone know how to fix this issue? Thanks!
The topic ‘Image Padding’ is closed to new replies.