Adding text under a picture

I am trying to ad a caption to a picture in a table cell. I want the text to show up below the picture. Any suggestions?<!--content-->Don't use tables. Unless this is tabular layout, which I doubt, don't use tables. One can simply put:<br />
<br />
<br />
<img src=http://www.webdeveloper.com/forum/archive/index.php/"mypic.jpg" alt="This Is My Pic" width="150px" height="100px"><br />
<span style="display:block;width:150px;">This Is My Caption</span><!--content-->Isn't a span with a display:block style just a div?<!--content-->It displays as such, but since the caption is more of a span of text than a division of the page, I thought it made more sense.<!--content-->Another way is Vladdy's simple<br />
<br />
<p><img ...><br />Caption</p><br />
<br />
with a text-align:center somewhere to line everything up nicely. I guess the table cell variation would be<br />
<br />
<td><img ...><br />Caption</td><!--content-->Thank you for the suggestions. However I'm not sure I have used the <SPAN> command correctly. I get the text next to the picture not under it. I have already tried the <DIV> command, but the text shows up in different places in MWIE and NN. Also, I should mention the pcture is already in a table cell. This particular cell has two pictures in it. I need a caption under each picture. Again, thanks for the help. Any other suggestions?<!--content-->Why not seperate the two images so that each image is in its own cell? Whenever I use captions I always use the technique previously posted (with a line break followed by centering the text under the pic).<!--content-->As I said before, Don't Use Tables For Layout. Now, if you provided us with the page in question, in would be of more help, since its rather hard to guess at the code your are using and the problems you are having. A URL is always nice.<!--content-->
 
Back
Top