Re: [css-d] Using width: auto; to fit parent element.

2007-09-11 Thread Philippe Wittenbergh
On Sep 12, 2007, at 9:11 AM, sandy wrote: > Hi everyone. I am trying to achieve an expanding caption box that > will > go under an image, and will be the size of that image based on their > parent div which would be based on the size of the image. > [...] > > > alt="image_2" /> >

[css-d] Using width: auto; to fit parent element.

2007-09-11 Thread sandy
Hi everyone. I am trying to achieve an expanding caption box that will go under an image, and will be the size of that image based on their parent div which would be based on the size of the image. so i wrote this html which puts both image and caption inside a div which is the parent.