Im sure this is far more HTML than PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
MrBurns
Forum Newbie
Posts: 5
Joined: Sun Mar 14, 2004 3:14 pm

Im sure this is far more HTML than PHP

Post 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
coreycollins
Forum Commoner
Posts: 67
Joined: Sun Feb 01, 2004 1:04 pm
Location: Michigan

Post 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
Steveo31
Forum Contributor
Posts: 416
Joined: Sun Nov 23, 2003 9:05 pm
Location: San Jose CA

Post by Steveo31 »

I believe in XHTML you have to define the value like so:

Code: Select all

<th nowrap="nowrap"></th>
MrBurns
Forum Newbie
Posts: 5
Joined: Sun Mar 14, 2004 3:14 pm

Post by MrBurns »

thanks guys!
Post Reply