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?

Recommended Answers

Pure 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.

Jump to Post

All 4 Replies

Pure 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.

What do you mean by dynamic?

You must not have PHP. Dynamic means the content changes. Since you are using static pages, it is very possible to do what you want.

Hi

Using the adjust concept in an img element, you container coast an carving so that appears on the accurate or on the departed of a few text, so that the article flows on the another cross of the image.
Thanks
best web designing company india

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.