Hi,

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.

--Mark

.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 />
                            </div>

.post-content {
    margin-top:14px;
}
  • check out the resources link. madphp about 7 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 about 7 years ago
  • i dont know what else I can post. Its a standard wordpress blog post. madphp about 7 years ago
  • any chance we could see the actual url for the problem page/image? Tony Crockford about 7 years ago
  • I agree w/ Tony... A url would really help with troubleshooting. Dwayne Anderson about 7 years ago

1 answer

0
points

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 about 7 years ago by Kevin Crawford