Thread: CSS and Captions
Results 1 to 7 of 7
Related
-
Having trouble placing images next to each other with captions Forum: HTML Forum
Replies: 1
-
02-21-2005, 01:07 PM #1
CSS and Captions
Hi All,
I am using css for my body copy and image formatting within tables, using code below for the images:
IMG.icon {
float: left;
}
IMG.icon2 {
float: right;
}
Is there a way to put captions under these using css?
Thanks,
Heidi
-
02-21-2005, 05:28 PM #2
Hiya,
Best bet would be to make a div, put the image AND caption in the div, then float that instead of just the image.If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
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
<p>body copy</p>
<img src="../images/avionics-pict1.jpg" width="271" height="174" class="icon">
//--Under this image is where I want my caption
<p>text</p>
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.
If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
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...
thx
-
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!
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum