Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7687563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:43:52+00:00 2026-05-31T19:43:52+00:00

How do I stop the table from pushing when the comment field has lots

  • 0

How do I stop the table from pushing when the comment field has lots of text, table code below, edit: forgot to mention this is a datatable from http://datatables.net/

enter image description here

    <div id="comment_wrapper" class="dataTables_wrapper" role="grid"><div class="dataTables_filter" id="comment_filter"><label>Search: <input type="text" aria-controls="comment"></label></div><table id="comment" class="dataTable" aria-describedby="comment_info">
      <thead>
      <tr role="row"><th class="sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 60px; " aria-label=""></th><th class="sorting" role="columnheader" tabindex="0" aria-controls="comment" rowspan="1" colspan="1" style="width: 55px; " aria-label="Name: activate to sort column ascending">Name</th><th class="sorting" role="columnheader" tabindex="0" aria-controls="comment" rowspan="1" colspan="1" style="width: 4702px; " aria-label="Comment: activate to sort column ascending">Comment</th><th class="sorting_desc" role="columnheader" tabindex="0" aria-controls="comment" rowspan="1" colspan="1" style="width: 60px; " aria-sort="descending" aria-label="Created: activate to sort column descending">Created</th><th class="sorting" role="columnheader" tabindex="0" aria-controls="comment" rowspan="1" colspan="1" style="width: 77px; " aria-label="Attachments: activate to sort column ascending">Attachments</th><th class="sorting_disabled" role="columnheader" rowspan="1" colspan="1" style="width: 46px; " aria-label="&lt;center&gt;Delete?&lt;/center&gt;"><center>Delete?</center></th></tr>
    </thead>

  <tbody role="alert" aria-live="polite" aria-relevant="all"><tr class="odd">
      <td class=" ">
      <img alt="Google-qr-code" height="50" src="/uploads/user/avatar/1/google-qr-code.jpg" width="50">
      </td>
      <td class=" ">Ahmet2</td>
      <td style="overflow: auto;" class=" ">fdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddfdssssssssssssssssssfsddddddddddddv</td>
      <td class="  sorting_1">2012-03-21 13:43:53</td>
      <td class=" "></td>
      <td class=" "><center><a href="/companies/12/comments/48" data-confirm="Are you sure?" data-method="delete" rel="nofollow"><img alt="Delete" height="15px" src="/assets/delete.png"></a></center></td>
    </tr><tr class="even">
      <td class=" ">
      <img alt="Google-qr-code" height="50" src="/uploads/user/avatar/1/google-qr-code.jpg" width="50">
      </td>
      <td class=" ">Ahmet2</td>
      <td style="overflow: auto;" class=" ">test</td>
      <td class="  sorting_1">2012-03-20 10:26:13</td>
      <td class=" "><a href="/uploads/comment/file/24/google-qr-code.jpg">google-qr-code.jpg</a></td>
      <td class=" "><center><a href="/companies/12/comments/24" data-confirm="Are you sure?" data-method="delete" rel="nofollow"><img alt="Delete" height="15px" src="/assets/delete.png"></a></center></td>
    </tr><tr class="odd">
      <td class=" ">
      <img alt="Google-qr-code" height="50" src="/uploads/user/avatar/1/google-qr-code.jpg" width="50">
      </td>
      <td class=" ">Ahmet2</td>
      <td style="overflow: auto;" class=" ">hey</td>
      <td class="  sorting_1">2012-03-20 10:00:02</td>
      <td class=" "></td>
      <td class=" "><center><a href="/companies/12/comments/12" data-confirm="Are you sure?" data-method="delete" rel="nofollow"><img alt="Delete" height="15px" src="/assets/delete.png"></a></center></td>
    </tr><tr class="even">
      <td class=" ">
      <img alt="Google-qr-code" height="50" src="/uploads/user/avatar/1/google-qr-code.jpg" width="50">
      </td>
      <td class=" ">Ahmet2</td>
      <td style="overflow: auto;" class=" ">test</td>
      <td class="  sorting_1">2012-03-20 10:00:00</td>
      <td class=" "></td>
      <td class=" "><center><a href="/companies/12/comments/11" data-confirm="Are you sure?" data-method="delete" rel="nofollow"><img alt="Delete" height="15px" src="/assets/delete.png"></a></center></td>
    </tr><tr class="odd">
      <td class=" ">
      <img alt="Google-qr-code" height="50" src="/uploads/user/avatar/1/google-qr-code.jpg" width="50">
      </td>
      <td class=" ">Ahmet2</td>
      <td style="overflow: auto;" class=" ">test</td>
      <td class="  sorting_1">2012-03-20 09:59:41</td>
      <td class=" "></td>
      <td class=" "><center><a href="/companies/12/comments/10" data-confirm="Are you sure?" data-method="delete" rel="nofollow"><img alt="Delete" height="15px" src="/assets/delete.png"></a></center></td>
    </tr></tbody></table><div class="dataTables_info" id="comment_info"></div><div class="dataTables_paginate paging_full_numbers" id="comment_paginate"><a tabindex="0" class="first paginate_button paginate_button_disabled" id="comment_first">First</a><a tabindex="0" class="previous paginate_button paginate_button_disabled" id="comment_previous">Previous</a><span><a tabindex="0" class="paginate_active">1</a><a tabindex="0" class="paginate_button">2</a></span><a tabindex="0" class="next paginate_button" id="comment_next">Next</a><a tabindex="0" class="last paginate_button" id="comment_last">Last</a></div></div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T19:43:53+00:00Added an answer on May 31, 2026 at 7:43 pm

    It looks like you have one long word pushing out your table. You can use the CSS word-wrap property on your table cells. This will tell any words that are too long to break in the middle instead of pushing it’s containers boundaries.

    #comment td{
        word-wrap: break-word;
    }
    

    Edit, you might also have to set a width on your #comment element. Set it to 100% if it’s going to fill it’s entire container. You might also want to set a specific width on the comment td.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to stop text from make the table width longer and make a new
I'm trying to stop a table that has width explicitly declared from overflowing outside
Using a data table from http://datatables.net/ , How can i stop it from overflowing
How do you I stop my links like this: <a href=# onClick=submitComment()> From jumping
Can I stop table header view from scrolling?
I have a table filled with bus stops. Each stop has a line_id ,
I am trying to stop the data in the following table from continuing to
In MySQL I can do something like: SELECT id FROM table WHERE field =
How would I stop these 2 routes from clashing: match users/:id/edit, :to => users#edit,
When you start/stop a python cherrypy service (compiled with py2exe), this works fine When

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.