1- set the width for your table td <td width=500 .....>
2- limit number of words on each line. you can do that using php... after certain number of words you can place line break <br />
Main Topics
Browse All TopicsI am in the process of making a forum and whenever someone posts a message it will go over the table if it is a long enough. Now how do I fix this?
<td align="left" valign="top" class="forum_post" style="WORD-BREAK:BREAK-AL
$message
</td></td></td>
</tr>
And it will exceed, how do I fix this?
Here is my Forum_Post Class
.forum_post {
border:1px solid #1E252E;
height: 100px;
font-family:Tahoma;
color: #8B969E;
background: #1E252E;
}
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Please post your page source as a code snippet.
You will need to set a width limit for the table container that can be accomplished with the below CSS table-layout property. This will allow browsers to display your table faster.
I would also recommend placing a DIV inside your TD cells and set the overflow:auto; along with a height:XXpx; property on it. I showed this with 200px as the value below as an example... This will create a scroll bar inside the div if the content exceeds the defined height dimension.
@NoSpamDan
Any forum that will have scrollbars inside a forum POST is imo not very readable and therefor I will never that forum again. Content of a forum post (text that is) should be automatically adjusted, so the user gets optimum view..
As I suggested in my first post (and as gawai and you confirmed) a container with a width or table with a fixed width will fix the issue. No need to do anything else as that will only make things worse..
Business Accounts
Answer for Membership
by: OnthraxPosted on 2009-10-01 at 00:29:15ID: 25466571
I don't see a width for your td, so the table will expand as long as needed.
Does the table itself has a width set?
Does the table container has a width set?