I want to make it so I can put a caption under an image so that the caption will only go as long as the image. I wan't to be able to do this without having to set a width for the caption. I do not know if this is possible with pure HTML and CSS. Anybody know how?
jonow
0
Junior Poster
Recommended Answers
Jump to PostPure HTML and CSS? I don't think so. You would have to do a javascript or php snippet I believe. If this is a static page with no dynamic content, then yeah you can do it easily. But if it is dynamic, I don't think so.
All 4 Replies
zizuno
0
Junior Poster in Training
jonow
0
Junior Poster
zizuno
0
Junior Poster in Training
rosy12
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.