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

  • SEARCH
  • Home
  • 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 6346289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:59:19+00:00 2026-05-24T20:59:19+00:00

I have an HTML table with two columns. For the last row, I want

  • 0

I have an HTML table with two columns. For the last row, I want the following to happen:

There will be one cell that spans two columns. (colspan = “2”) The width of this cell will not grow past the width of the table. Anytime text in that cell grows too large, I want it to span another row, but not increase the width of the table. The catch is, I want the width of the table to be fitted to be as large as it needs to be to contain the two columns without expanding to another row (excluding the last row).

EDIT: What I have that doesn’t work. The problem is that if “really long text” gets too long then it expands the other “text” messages instead of adding new rows.

<table>
<tr><td>text</td><td>text</td></tr>
<tr><td colspan="2">really long text</td></tr>
</table>
  • 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-24T20:59:20+00:00Added an answer on May 24, 2026 at 8:59 pm

    on your last row, wrap the content in a div and give it a width, like 100%, this way it wont increase the width of the table but just wrap around.

    <td colspan="2">
      <div style="width:100%"> The content here</div>
    </td>
    

    Since you tagged this question html and css i have to tell you that if you want the content to dynamically create a new row, you will have to use javascript. It’s not possible without script, at least not that i know of.

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

Sidebar

Related Questions

I have a HTML table where each row has two columns. First column is
I have created an HTML table with two columns. I want the first column
I have a table which has columns of data that contain status. Two example
I have a very straightforward HTML page that displays content in two columns. To
I want to create a basic two columns layout in HTML with a table,
In my HTML document, I have a table with two columns and multiple rows.
I have asp:datalist binding from table this table contain two columns one of them
I have an HTML table that looks like this: ------------------------------------------------- |Column 1 |Column 2
I have an HTML table with several columns and I need to implement a
I have an HTML table with one column being email addresses; spambot issues aside,

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.