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 7854689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:08:52+00:00 2026-06-02T20:08:52+00:00

I want to wrap my text inside the cell, so that the widths of

  • 0

I want to wrap my text inside the cell, so that the widths of all cells will be equal. The text should not be hidden after wrapping. Here’s my table-

<table border="2" width="20px">
<tr>
<td>testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest</td>
<td>test</td>
</tr>
<tr>
<td>test</td>
<td></td>
</tr>
</table>

With wordwrap:break-word, the text is getting hidden. Also I don’t want a scroll bar.

How can that be achieved by CSS? Point me in right direction.

  • 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-06-02T20:08:54+00:00Added an answer on June 2, 2026 at 8:08 pm

    http://jsfiddle.net/fekSg/. Use fixed for table layout, and make all the td elements wrap

    <style>
    td {
    word-wrap: break-word;
    }
    </style>
    <table border="2" width="100px" style='table-layout:fixed;'>
    <tr>
    <td>testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest</td>
    <td>test</td>
    </tr>
    <tr>
    <td>test</td>
    <td></td>
    </tr>
    </table>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Should I wrap all the files I want to install in individual components? What
I would like to put text inside a bubble, and I want that my
I want to select the text inside the div element and wrap it with
I want to wrap a piece of code that uses the Windows Impersonation API
I've got a (poorly written) base class that I want to wrap in a
I have the following script that is working great, but I want to wrap
I want to display strings inside CoreAnimation layers, but unfortunately CATextLayer is not enough,
I want to draw a text with different colors and the only way that
I was wondering if it were possible to preformat text that is inside a
I want to center a text inside a TextView relative to the parent layout

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.