On Wed, 01 Jun 2005 12:39:12 -0400, Linda Dunn <[EMAIL PROTECTED]>
wrote:
I have a page posted here...
http://www.seafoodlab.cmast.ncsu.edu/aboutus.html
...in which I am playing with the idea of making a div with class
"photobox" for photos (the black and white one on the left) which will
contain a photo caption.
...
This works great so far for this one picture, but the problem is that I
have to define the width of the div based on the photosize. So, the
photos will either have to all be the same width, or I'll have to
creative various photoboxes for various photo sizes.
Is there anyway to have the div stretch automatically to accommodate
photo size (with the caption underneath, since the img is defined as a
block level element) that doesn't involve javascript or the like? I
really like doing the captions this way rather than as part of the
image, for obvious reasons.
linda
Not sure this would work in your situation, but might be worth a look:
<http://www.w3.org/Style/Examples/007/figures.html>
Or, could you give a unique id to each page on the body element, and
change only the width of the selector, for the corresponding page/image?
Regards,
David Laakso
--
http://www.dlaakso.com/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/