Click to See Complete Forum and Search --> : Preventing multiline table entries HTML


Rabidmuskrat
July 25th, 2005, 02:43 PM
I am developing a report generator for my boss. I've gotten it to pull all of the information necessary and read it into a table, however, the table can be extremely large both in number of entries and width. Is there any way that I can make it so that a cell will not allow multiline text? For example...

I want "Client Contact Information" to always read

Client Contact Information

instead of

Client
Contact
Information

I don't mind my table extending well beyond the width of the screen. If anybody can help me out with this it would be greatly appreciated. Thank you for your time.

for all interested this problem was solved by using some css.

white-space: nowrap

olivthill
July 25th, 2005, 03:21 PM
There is a style for your needs. Assign it to the "td" (table data) tag like that:

<html>
<style type="text/css">
td {
white-space: nowrap;
}
</style>
<table border=1>
<tr>
<td>
Two men are figthing each other. A judge come and listens to the first man. He concludes he is right. He listens to the second man. He concludes he is right too. Another persom comes and remarks that it is impossible everybody is right. The judge says that this third person is right.
</td>
<tr>
<table>
</html>