Thanks, the first page on google now shows this in the description! so a 'css nobr' search found it at place 8 I think. Good work!
john wrote on 2005/06/27:
Thanks for this! I waste some time with other websites that have the WRONG answer until I found this one. Other searches mentioned an extra hyphen between "no" and "wrap" which doesn't work on my browser (IE 6).
It is working on Firefox and Opera on <td> tags:
<td class="nobr">...</td>
but it is not working in IE6 !
The div version seems to work on all browsers:
<div class="nobr">...</div>
Regards,
Razvan
.nobr
{
white-space: nowrap;
}
Regards,
Razvan
According to the W3C recommendations, it applies to block level elements only in CSS1. In CSS 2 it applies to all elements.
A case of trial and error for which browsers support it I guess.
<a href=http://apcserviceder.com>apcservicder</a>
thanks!