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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:52:51+00:00 2026-05-26T03:52:51+00:00

I have a table which can have rows and columns added to and removed

  • 0

I have a table which can have rows and columns added to and removed from it. I’d like to put a textarea to the side of it which will be kept to the same size as the table, so that it looks good.

I have to issues. First is getting it to show up on the right side of the table (provided there is space, if not it should wrap).

I have tried setting style to display: inline-table on the table and it does make the textarea (which is a sibling to the table in the DOM) show up to its right, but it does not line up in IE9, Opera, or Firefox. The textarea sticks up over the table. Works with Webkit. Webkit also has a nice grabber thingy on the bottom right to let me adjust the size.

If I use display: inline-block it now works in Firefox. Still broken in IE9 and Opera.

For dynamic resizing, I could just call a function to resize it every time the table changes.

How do I retrieve the size of a table or other element (in pixel units or other units)?

Fiddle demonstrating issue: http://jsfiddle.net/7jKDm/4/

  • 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-26T03:52:51+00:00Added an answer on May 26, 2026 at 3:52 am
    var height = document.getElementById('tbl').clientHeight;
    

    seems to do the trick. I believe it is in pixels.

    As far as getting it to align with the table, you can have to last column of your table hold this textarea and rowspan the whole table, or you can set up column divs, which there are plenty of tutorials for with google search.

    Seems like this person also got it to work using .offsetHeight

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

Sidebar

Related Questions

I want to implement a table structure which can have multiple rows and columns
HI, I have a large table from which i can query to get the
What I can think of is: Algo: Have a hash table which will store
I have a table of data sorted by date, from which a user can
Can we have a SQL query which will basically help in viewing table and
I have a table which has two fields. There can be multiple rows with
I have a table yrs_order which has columns like: header_key (primary key) order_no ref1
I have a table which looks something like the following (first row is columns):
I have a table which defines what things another table can have, for example:
I have a table which contains my ads that can be searched in sql-server-2008.

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.