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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:47:43+00:00 2026-06-18T03:47:43+00:00

I have a table and I use Javascript to implement the function that allows

  • 0

I have a table and I use Javascript to implement the function that allows the user to add/delete columns of certain row. The content of the new datacell will be the same as that in the one before that. I find that if I just add one column (one datacell to a row), everything is fine. The new datacell has the same content, size, and layout of the the one before it (the one on its left). However, if I add one more, the newly added datacell’s layout is different, and the size of the datacell increases but the layout of the first two datacells don’t change. And the HTML page jumps around. If I delete the third datacell, everything goes back to normal. Looks like two is the limit? But I don’t remember hardcoding anything.

Is there a property I could add to solve this resizing-itself problem? I tried adding the nowrap property to , it solved the page-jumping-around problem but the size of datacells still changes and the layout changes too.

EDIT: It turns out the resizing is because that the cells are out of the browser’s scope so it tries to “compress” them.

  • 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-18T03:47:44+00:00Added an answer on June 18, 2026 at 3:47 am

    I’m not sure, what your point is, exactly, but I think you mean, that your cells resize with the amount of content, but there is the colgroup, where you can set a number of columns and set width, height and so on

    <colgroup>
    <col width="200px">
    <col width="180px">
    <col width="220px">
    ...
    </colgroup>
    Your first three columns every row have 200px,180px and 220px fixed. Every additional column will be resize themselves.

    Sorry, my english is not good.
    I hope this will help you.

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

Sidebar

Related Questions

I have table with few rows, after use hover mouse over row I want
I use SQL Server 2008 and have a table with 5 char typed columns.
I use SQL Server 2008 R2 and have a table that I want no
I have a remote mySQL table that I use in a few tools, occasionally
I have a groupby and sum table that I use to display current stock
I have my form in a table and I use this code to add
I have a table that is built dynamically from a user specified query to
I have the following table. What do i need to use in JavaScript to
I am trying to use JavaScript to add rows to a table dynamically using
I have a table containing data about some users. Many of them use our

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.