What’s the CSS equivalent for the nowrap attribute?

June 1, 2008 – 11:28 pm

If you’ve been using the HTML attribute nowrap to prevent text from wrapping in table cells (for example), you can do the same via cascading style sheets (CSS).

As an HTML attribute:

<td nowrap="nowrap">Some text here</td>

As CSS:

.abc { white-space: nowrap; }

<td class="abc">Some text here</td>

Your Ad Here

Post a Comment