I cant seem to get caption text in wordpress to appear below the image. its appearing underneath the image.

Below is a screenshot of what im talking about.


.wp-caption {
margin-left: 20px;
margin-right: 20px;
padding: 0px;
border: 1px dotted #69BFDE;


.wp-caption img {
    padding: 5px;

.wp-caption p.wp-caption-text {
    margin: 0px;
    padding: 0px 0px 0px 5px;
    font-size: 9px;
    font-style: italic;
    font-weight: bold;
    line-height: 12px;

its just sitting in a wordpress blog post.

<div class="post-content">
                                <span><?php the_content();?></span>
                                <br /><br />

.post-content {
  • check out the resources link. madphp almost 10 years ago
  • html sample to go with the CSS please? there's not enough to go on - where's the rest of the CSS that positions the image? Tony Crockford almost 10 years ago
  • i dont know what else I can post. Its a standard wordpress blog post. madphp almost 10 years ago
  • any chance we could see the actual url for the problem page/image? Tony Crockford almost 10 years ago
  • I agree w/ Tony... A url would really help with troubleshooting. Dwayne Anderson almost 10 years ago

1 answer


The other day I was having problems with WordPress captions as well...my problem was that it wasn't producing the HTML markup for the caption at all. Use Firebug to make sure the HTML is there, and if not, this is a programming/WordPress problem, not CSS.

Answered almost 10 years ago by Kevin Crawford