nowrap
Making a piece of text non-breaking?
Use the white-space property: Hello I am some text Hello I am some text Hello I am some text Hello I am some text <span class=”nobr”>I do not wish to be broken on new lines</span> with: span.nobr { white-space: nowrap; }
Attribute ‘nowrap’ is considered outdated. A newer construct is recommended. What is it?
You can use it like this, I hope you wont get outdated message now. <td valign=”top” style=”white-space:nowrap” width=”237″> As pointed by @ThiefMaster it is recommended to put width and valign to CSS (note: CSS calls it vertical-align). 1) <td style=”white-space:nowrap; width:237px; vertical-align:top;”> 2) We can make a CSS class like this, it is more elegant … Read more
How to make a DIV not wrap?
Try using white-space: nowrap; in the container style (instead of overflow: hidden;)