Page 1 of 1

Im sure this is far more HTML than PHP

Posted: Mon Mar 15, 2004 7:48 pm
by MrBurns
Hi i have a table with headings in containing "-" is there any way to have a table which can change its width according to screen size without splitting the word at the - making sure it stays on one line

Posted: Mon Mar 15, 2004 8:45 pm
by coreycollins
One idea is you could do a nowrap in the TH or TD. It all matters how you're doing it. Try a

Code: Select all

<TH nowrap> or a 
<TD nowrap>
That will stop it from wrapping to the next line. Then make the table width a percentage. For example, if you want the table to be as wide as possible make the width=100%.

Corey
http://www.savance.com
http://www.coreycollins.com

Posted: Mon Mar 15, 2004 9:07 pm
by Steveo31
I believe in XHTML you have to define the value like so:

Code: Select all

<th nowrap="nowrap"></th>

Posted: Mon Mar 15, 2004 9:08 pm
by MrBurns
thanks guys!