[thelist] caption on images?

David Dorward evolt at david.us-lot.org
Mon May 10 09:49:59 CDT 2004


On 10 May 2004, at 16:29, david.landy at somerfield.co.uk wrote:

> What is the best way to put a permanent caption on an image? ALT text 
> will
> show only when you hold the mouse over the image...

No, alt text will show only if you happen to be using a browser which 
will show the alternative representation of the image when you point at 
it. There is no requirement for browsers to do this and many people 
consider it a bug.

There are a number of options open to you depending on how far you want 
to go.

You could place a paragraph of text after the image, you use use 
JavaScript to extract data from the title attribute, you could alter 
the image itself to include the caption. You could leave the text after 
the image, or you could use CSS to position it on top of the image.

There are quite a few options, and 'best' depends on how well it needs 
to be supported, how important the text is, and the usual vagaries of 
such a subjective term.

--
David Dorward
      <http://dorward.me.uk/>
<http://blog.dorward.me.uk/>



More information about the thelist mailing list