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

Posted by Jim Moe on 05/09/06 22:58

Fons Rave wrote:
>>
>> Options:
>> 1. Use   instead of " ".
>> 2. Use <span style="white-space:nowrap">abc def ghi</span>.
>
> I tried &nbsp before. Probably in a wrong way. Maybe the "span style" is
> the best; is longer but, I think, gives the HTML a better readabillity.
>
Did you use "&nbsp" (incorrect) or "&nbsp;" (correct)?
The style option is better for long lines. It can also be made a ruleset
and applied wherever you want it.

.nobr { white-space: nowrap; }
<span class="nobr">abc def ghi</span>
<h3 class="nobr">abc def ghi</h3>

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)

 

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

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