http://mcgivney.ehclients.com/press/
[...] is there some way to always make the box as wide as the photo and not
wider? I'd like the caption to wrap around in the box under the photo, but not
be wider than the photo.
Rearrange source-code and restyle...
<div class="photo_and_caption">
<span>
<img
src="http://mcgivney.ehclients.com/images/channels/press_sample_photo2.jpg"
alt="Test Press Event" />
This is a really long caption that will wrap under the photo and it goes
on and on and on
</span>
</div>
.photo_and_caption span {display: table; width: 100px; text-transform :
uppercase;
font : 12px 'TitilliumText22LBold', Tahoma, Arial, Helvetica, sans-serif;}
...and you'll get the effect you want in all somewhat decent browsers.
regards
Georg
______________________________________________________________________
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/