Having trouble aligning an image and text beneath it? I'm able to center both the image and text, but things get messy when I try to move the text left or right. The text ends up overflowing outside of the image boundary and I can't figure out how to keep it contained.
Here's my current HTML setup:
<p align="center"><img src="/someimage.jpg" height="300" width="600">
<b>text under it</b></p>
I've tried wrapping the text in a span and floating it left or right, but that just causes it to extend past the image. Any suggestions on how to properly contain the text within the image border?