how to stop a cell or table from expanding

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
adsegzy
Forum Contributor
Posts: 184
Joined: Tue Jul 28, 2009 9:26 am

how to stop a cell or table from expanding

Post by adsegzy »

Pls how do i stop my table or cells from expanding.

regards
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: how to stop a cell or table from expanding

Post by Jonah Bron »

Perhaps you could clarify your question more.
adsegzy
Forum Contributor
Posts: 184
Joined: Tue Jul 28, 2009 9:26 am

Re: how to stop a cell or table from expanding

Post by adsegzy »

what i mean is that i have a table with some number of cells. whenever the content is echoed some cell will expand beyond their normal sizes. how do i stop the cells from expanding?
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: how to stop a cell or table from expanding

Post by Jonah Bron »

How do you want to stop it? Do you want the text to wrap? Do you want to cut off the excess?
adsegzy
Forum Contributor
Posts: 184
Joined: Tue Jul 28, 2009 9:26 am

Re: how to stop a cell or table from expanding

Post by adsegzy »

i will like to wrap in some cases and i will like to cut off text in other cases
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: how to stop a cell or table from expanding

Post by Jonah Bron »

You can use CSS to set that. The overflow property is what you need.

http://www.css3.com/css-overflow/
Post Reply