Thread: CSS and Captions
Results 1 to 7 of 7
Having trouble placing images next to each other with captions Forum: HTML ForumReplies: 1
02-21-2005, 01:07 PM #1
CSS and Captions
I am using css for my body copy and image formatting within tables, using code below for the images:
Is there a way to put captions under these using css?
02-21-2005, 05:28 PM #2
Best bet would be to make a div, put the image AND caption in the div, then float that instead of just the image.
02-23-2005, 09:55 AM #3
I'll give it a try, thanks!
02-23-2005, 03:20 PM #4
Alright, having difficulties...
Okay, say I am inside my
<td> and I have a
<img src="../images/avionics-pict1.jpg" width="271" height="174" class="icon">
//--Under this image is where I want my caption
How would I add the floating div? I tried :
<div class="icon"><img src="../images/avionics-pict1.jpg" width="271" height="174"><caption>Copy</caption></div>
and it got all funky. What am I doing wrong?
02-23-2005, 03:29 PM #5
Could you define "all funky"? Or possibly give us a link so we can see. Thanks.
02-24-2005, 05:33 PM #6
All Funky- adj. meaning rest of copy below image disappears, including caption within div, and content below div tag.
Don't have time to upload a sample page today, I will get back with you tomorrow...
03-01-2005, 11:30 AM #7
Sorry to take so long getting back, been swamped! Anywhoo, I figured out how to do it, I can just create a table around the image using the float css code on the table, and a new cell below the image with the caption. Thanks!