sandy wrote:
> 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.
You _can_ force down the width of a float to the narrowest unbreakable
content-element (which is the image) by utilizing CSS table's
auto-expansion when given a too narrow width...
.image_and_caption {
float: right;
display: table;
width: 100px;
}
...which is supported well enough for comfort by good browsers.
However, support for CSS table is missing completely in all versions of
IE, so in reality you're either left with searching for another
construction altogether, or you have to add some "minimal IE-garbage" to
your source code and CSS to make IE/win behave.
You can check a copy of your page with such an IE/win workaround here...
<http://www.gunlaug.no/tos/alien/sa/test_07_0913.html>
You can of course give all browsers an "HTML table in a float", but the
table better be complete then :-)
regards
Georg
--
http://www.gunlaug.no
______________________________________________________________________
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/