Beginner here. I spent a good deal of time trying to get captions positioned under images on my test blog. I’m using the Fasttrack theme. I think I’ve got it now, but wonder if I’m truly doing it correctly.
I opted to follow the advice in the Codex:
I had inserted into my style.css all the code on that page, used the recommended HTML in a post, and everything worked well enough except for captions which were appearing within the blue box surrounding the photo (just testing with the example color from the Codex which appears as blue on my site) just to the right of the lower right hand corner of the photo.
After much searching I found some advice on another forum which used roughly the same approach to creating captions. There were a few small differences in the strings of code they recommended, but with some tinkering I found the only bit I really needed to add was:
“div class=”caption left”” at the beginning of the HTML when posting.
So is the reference to “width” indeed necessary?
In my test blog the first photo shows where I seem to have it right. The photos below it show the result using only the code from the Codex (without the “style=”width: 250px””):
My question: Is there really a piece missing from the advice in the Codex, or am I overlooking something? If it was not an error or oversight on my part (something in my style.css interacting with the Codex-recommended code?) is this something that needs revision in the Codex?
I did see a different approach recommended here:
But it seems to be wholey different, while the method above allowed me simply to add to the codex advice.
Thanks in advance for any thoughts or opinions!
(If it would be clearer, I can post examples of the HTML for inserting a cation in a post using just the Codex advice versus with the extra string added. Just ask.)