Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable text wrapping

Tags:

html

css

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

like image 531
Neir0 Avatar asked May 20 '11 09:05

Neir0


People also ask

How do I force text not to wrap?

If you want to prevent the text from wrapping, you can apply white-space: nowrap; Notice in HTML code example at the top of this article, there are actually two line breaks, one before the line of text and one after, which allow the text to be on its own line (in the code).

How do I turn on text wrapping in word?

Go to Picture Format or Shape Format and select Arrange > Wrap Text. If the window is wide enough, Word displays Wrap Text directly on the Picture Format tab. Choose the wrapping options that you want to apply. For example, In Line with Text, Top and Bottom, and Behind Text.

How do I stop Excel from wrapping text?

The fastest way is to select the cell(s) and click the Wrap Text button (Home tab > Alignment group) to toggle text wrapping off. Alternatively, press the Ctrl + 1 shortcut to open the Format Cells dialog and clear the Wrap text checkbox on the Alignment tab.


Video Answer


2 Answers

you should add some classes ...

<table class="tbl-emails"> 

and then

.tbl-emails td { white-space: nowrap; } 
like image 189
balexandre Avatar answered Sep 19 '22 23:09

balexandre


(Add to your CSS Selector).

white-space:nowrap; 
like image 30
Layke Avatar answered Sep 20 '22 23:09

Layke