Re: Text with automated line-breaks for a picture
- From: "Greg N." <yodel_dodel@xxxxxxxxx>
- Date: Mon, 08 Aug 2005 20:34:31 +0200
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/ .
- Follow-Ups:
- Re: Text with automated line-breaks for a picture
- From: Greg N.
- Re: Text with automated line-breaks for a picture
- References:
- Text with automated line-breaks for a picture
- From: Herbert Gerstinger
- Re: Text with automated line-breaks for a picture
- From: Neredbojias
- Re: Text with automated line-breaks for a picture
- From: Herbert Gerstinger
- Text with automated line-breaks for a picture
- Prev by Date: Re: Swapping bgcolor in table cell
- Next by Date: Re: Text with automated line-breaks for a picture
- Previous by thread: Re: Text with automated line-breaks for a picture
- Next by thread: Re: Text with automated line-breaks for a picture
- Index(es):
Relevant Pages
|