You are here: Re: Text with automated line-breaks for a picture « HTML « IT news, forums, messages
Re: Text with automated line-breaks for a picture

Posted by Herbert Gerstinger on 11/12/67 11:23

Greg N. wrote:

> Greg N. wrote:
>
>> 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>
>> ---------------------------------------------------
>
> There is a minor error there, the line
> <div style="width:298px; margin-left:auto; margin-right:auto;">
> should read:
> <div style="width:346px; margin-left:auto; margin-right:auto;">
>
This works, but only when you know the width in advance :-(

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация