Re: Text with automated line-breaks for a picture



Herbert Gerstinger wrote:

You must set a width for the div.

I tried that too. Works only when some other thing competes for horizontal space. (For example a text beside the picture) If the picture stands alone, the text underneath is still not broken.

Maybe you had a typo somewhere. It works for me, with Firefox and IE. See this sample:


http://coolhaus.de/misc/line-brk.htm

This is the html:
-------------------------------------------------
<html>
<body>
<p>
<div style="text-align: center;">
<div style="width:298px; margin-left:auto; margin-right:auto;">
<img src="http://coolhaus.de/misc/troll1.jpg"; alt="My Picture" width=346 height=418>
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Class aptent taciti sociosqu ad litora torquent per conubia nostra,
per inceptos hymenaeos.
</div>
</div>
</html>
---------------------------------------------------


--
Gregor's Motorradreisen:
http://hothaus.de/greg-tour/
.



Relevant Pages

  • Re: Donkey Pics
    ... >> stuff stored in the EXIF Data in the JPEG Files. ... get the Options to Create a Web type Picture Gallery. ... > associated HTML files and imported them into Net Objects. ... > Thumbnail app? ...
    (uk.people.silversurfers)
  • Word-generated HTML with the picture
    ... If a signature with a picture was created using MS Word, ... inserted HTML and picture I get a warning: ... the page may not display correctly." ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Use of tag
    ... either picture on left or right. ... This is picture .html ... Trevor Lawrence ... Web Site http://trevorl.mvps.org ...
    (microsoft.public.frontpage.programming)
  • Re: Html attachments and a little red cross
    ... Are you seeing a red X instead of images anywhere other than these specific attachments or saved files? ... I now see the little red cross even in older html attachments. ... Previously I could see the masthead picture fine. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Html attachments and a little red cross
    ... I now see the little red cross even in older html attachments. ... Previously I could see the masthead picture fine. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)