You are here: Re: How to prevent line break ? « HTML « IT news, forums, messages
Re: How to prevent line break ?

Posted by Toby A Inkster on 05/18/07 11:51

thogra wrote:

> Can I somehow glue it to the last word in the sentence ?

Adding a "zero-width non-breaking space" character between the word
and the quote mark should do the trick, but it's not supported in Internet
Explorer.

You could add <nobr>...</nobr> around the last word and quote mark, but
this will stop your HTML for validating, as <nobr>, despite being widely
supported, was never standardised. If validating your document is
important to you, you could always create a custom DOCTYPE.

The final option is to use something like <span class="nobr">...</span>
instead of <nobr>...</nobr> and define a style like:

.nobr { white-space: nowrap; }

--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python/Apache/Linux

 

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

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