You are here: Re: Keeping words together « HTML « IT news, forums, messages
Re: Keeping words together

Posted by Jukka K. Korpela on 05/10/06 09:48

"Tony Watts" <tonywatts977@tiscali.co.uk> wrote:

> Wouldn't the tag <pre></pre> allow the preservation of preformatted text's
> spaces and line breaks?

It would. But that's not what was asked.

> IS there any reason that would not be appropriate
> here, other than potentially getting into lazy habits?

Yes. It's a block level element, implies monospace font, and preserves all
whitespace.

Regarding the original question, there are several possibilities, and the
best choice depends on the context, which was not disclosed. If you know how
to author in ISO 8859-1 (you should), you can simply use the no-break space
character (U+00A0), entered in some program-dependent way (e.g., Alt-160),
though then the problem is that you (or someone else reading your source)
cannot tell normal spaces from no-break spaces.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

 

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

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