fixing the size of table

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
akshaylamba
Forum Newbie
Posts: 1
Joined: Mon Feb 15, 2010 12:03 pm

fixing the size of table

Post by akshaylamba »

i retrieve data from a table in mysql using PHP in a Table but as the data grew in lenght the table cell also grew....I want that
the cell should be fixed.....


Like i want to show NEW & Announcement section on the website from the database so as the no. of news increases the cell size increases I want that the cell should be fixed & by using the marquee the new can come one by one......

PLEASE HELP>...
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: fixing the size of table

Post by josh »

You could use the substr function to truncate the string, or use CSS to set an overflow value on the cell. Javascript would be a way to make it so it previews the full text upon mousing over the cell.
Post Reply