Herbert Gerstinger wrote:
> Toby Inkster wrote:
> > Herbert Gerstinger wrote:
> >> <div align=center>
> >> <img src="pic.jpg">
> >> <br>My very long text
> >> </div>
> >
> > <div class=picturediv style=width:200px>
> > <img src=my_picture.jpeg alt='My Picture' width=200
> > height=160>
> > <p>This is a caption for the picture above.
> > </div>
>
> As I said in the other comment, that doesn't work either. (I tried width:
> 0px). It only works when something competes for space (like some text
> beside the picture). If the picture stands alone, the width is ignored
> (at least with Mozilla and Konqueror) and the text still has just one
> single line.
Are the pictures appearing side-by-side or in a column? If it's the
former you can float all the <div>s to one side and clear whatever
comes afterwards (giving the necessary 'competition for space'). Note
that this will look strange if the images are different heights - in
this case wrap each <img> in another <div> whose height is set to the
height of the highest image - this way the captions for all the images
will line up.
--
Safalra (Stephen Morley)
http://www.safalra.com/hypertext/