Sure

I've never heard myself of using DL/DT/DD for this sort of thing, although instinctively it seems quite an appropriate use.

My question relates to what sort of problems you have encountered with widths; I would have thought the following would pose no problems:

<dl class="captionedimage">
<dt><img src="xyz.jpg" width="100" height="150" alt="Australian Landmark" /></dt>
<dd>Here is wonderful example of a Australian Landmark</dd>
</dl>


You would simply be meddling with padding, margins and borders on the elements; the width remains attached to the image itself, as this is appropriate even with XHTML 1.1.

I presume you know you can easily float the dl left or right, rather than use "align=right" on the <img /> element.

Siggy

I was wondering what the best solution was for captioning images where
you
have a number of differently sized images on a page.

Is using a definition list the best way to do this and the most
semantically correct?  Are there better ways?

The biggest problem I have found is having to set the width of the dl
when
all the images are of a different size.

Thanks
Helen

****************************************************** The discussion list for http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



Reply via email to