sandy wrote:
> here is my site:
>
> http://www.westboundandweary.com/pca/support_pca/
>
> my question is about the image and caption i sent an email about
> earlier. my goal is to make that caption fit the width of whatever size
> image happens to be displayed.
> caption and image are both inside parent div floated right of
> unspecified width. i do not set specific width to the caption div so it
> will stretch according to the image size, it is on auto. the problem is
> when the caption div has only a little bit of text, it stretches to the
> correct width of the parent which is good (see the bottom image and
> caption example), but when it has a lot of text it is stretching it's
> div out past the image and stretching the parent (see the top image and
> caption example). how do i make the caption contents wrap to an
> unspecified width? is this possible?
>
Good question. Maybe if you add a "max-width: 100%" to the parent...
not sure about IE, maybe "width: 100%; height: auto" ??
Rafael.
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/