Neir0
Neir0

Reputation: 13367

Disable text wrapping

Here is table with email and checkbox cells. But how i can disable textwrapping?

Code is someting like:

<table>
<tr>
<td>
<input type="checkbox" />
<td>
Dmitry soloviev ([email protected])
</tr>
...........
</table>

enter image description here

Upvotes: 35

Views: 66062

Answers (4)

Layke
Layke

Reputation: 53146

(Add to your CSS Selector).

white-space:nowrap;

Upvotes: 21

Algiz
Algiz

Reputation: 1288

You could also check the property overflow-x: http://www.w3schools.com/cssref/css3_pr_overflow-x.asp

Upvotes: 3

harishtps
harishtps

Reputation: 1439

The white-space attribute allows you to prevent text from wrapping until you place a break
into your text.

p { white-space: nowrap; } 

Upvotes: 7

balexandre
balexandre

Reputation: 75083

you should add some classes ...

<table class="tbl-emails">

and then

.tbl-emails td { white-space: nowrap; }

Upvotes: 66

Related Questions