I don't know what the usual procedure is, but the float property does require a width to be specified, so I think you probably have two choices.
1) Put the border around the img itself (which leaves your caption outside it, changing your design). You could then enclose the left floating img and the caption in an invisible right floating box of fixed width, and make the caption float left, too, with a fixed width. The img could then float over the border of the enclosing div, and while the caption will not necessarily run the full length of the img, it will at least stay associated with the picture. (I'd not centre the caption, so that you don't have a problem with the caption centring at random points.)
2) Make all your pictures the same size :(
Anyone else got a better solution? Are there any problems with what I've suggested? (For eg, is it possible that the img might run off the rh side of the page if it's a lot wider than its enclosing, fixed width, right floating div?)
-Hugh
I wondered about that. The class "photoright" is used throughout the site
with different size images, therefore to specify a width is difficult. When
I placed the image I added the height and width with img style and thought
that would cover it. What is the usual procedure in this case?
*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************
