[thelist] CSS Image Captions

Sam Richardson sam.richardson at outwide.co.nz
Sun Feb 16 16:26:01 CST 2003

I am trying to build a box that sits withen the content flow of page and
displays an image with a caption under it.

The problem I have however, the box expands out to fill the entire parent
block element, where I want it to contract around it instead. I can get it
to contract by specifying a width, but because it is going into a content
management system, I don't have access to images width. The code I have so
far looks like this:

<div id="inlineimg">
  <img src="/templates_html/images/temp/inline_kite-fly.png" alt="Fly the
Kite!" />
  <p>Maecenas nunc. Vivamus eu purus. Aliquam quis ante.Suspendisse

Is there something I can add to the <div> to make it contract? I don't
really want to have to use a table for this!

More information about the thelist mailing list