Im sure this is far more HTML than PHP
Moderator: General Moderators
Im sure this is far more HTML than PHP
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
-
coreycollins
- Forum Commoner
- Posts: 67
- Joined: Sun Feb 01, 2004 1:04 pm
- Location: Michigan
One idea is you could do a nowrap in the TH or TD. It all matters how you're doing it. Try a
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
Code: Select all
<TH nowrap> or a
<TD nowrap>Corey
http://www.savance.com
http://www.coreycollins.com
I believe in XHTML you have to define the value like so:
Code: Select all
<th nowrap="nowrap"></th>