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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:37:26+00:00 2026-06-05T21:37:26+00:00

I have two table cells, with dynamic content. Table cell one works fine, when

  • 0

I have two table cells, with dynamic content.

Table cell one works fine, when new content is added to it making it bigger than table cell 2, table cell 2’s height fits table cell 1’s and all is well in the universe.

But when new content is added to table cell 2 (which has overflow hidden, and works fine with display: block) it expands, the overflow never happens, and table cell 1’s height now matches table cell 2.

What I want is when more content is added to table cell 2, it will show content up to table cell 1, then the rest is hidden. I understand I can do it in javascript, any idea how to do it without it?

Here’s a JSFiddle: http://jsfiddle.net/dYsNx/

Col 2 should only go up to col1’s height in content, rest should be overflow hidden

  • 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-05T21:37:28+00:00Added an answer on June 5, 2026 at 9:37 pm

    overflow: hidden should not be used in that way.
    But, you get the concept.

    Others, I saw your code is not very clean and keeping in standard.
    So, I would modify it in my way (hope it is better)

    Please see the following link:
    http://jsfiddle.net/Edditoria/TGfzA/

    As you see, overflow: hidden; is in #box, then set position: relative; without top/left setting.

    To avoid display:table compatibility issue of IE<7, please just keep the default div display setting in CSS. I would use % rather than fixed px width to avoid IE’s display issues too!

    Assuming col1 is the base of dynamic height, there’s nothing to do.

    In col2 (and all other columns), you will need to add position: absolute; top: 0px; left: 50%;.

    I change the col-x from ID to class, since you may need to add more columns later.

    • update: base on your comment, added scrolling instead of hide extra information.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table that has its content filled using one of the two
I have two table cells. The first contains a link and an image (CollegiateLink).
I am making a custom table view which has content 'Static Cells' and style
I have a UITableView and a UITableCell subclass. Each table cell has two scrollviews
I have a table with 5 columns. The final row should have two cells,
I have a custom UITableViewCell with two labels ( UILabel ). The table cells
I have a grouped table view that utilizes two different custom table cells. When
I have an ASP.net table. In several cells I have two dropdown lists. The
My app needs to have variable height table cells (as in each table cell
I have two table views in a single controller.One is grouped whose frame is

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.