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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:06:03+00:00 2026-06-03T12:06:03+00:00

I have two separate tables on which I use a focus+hover function on each

  • 0

I have two separate tables on which I use a focus+hover function on each tr that works great on both tables simultaneous, my problem is with td height because if the description of a td from fist table is greater will be displayed on two rows in the same td and the height of td will be modified but only into first table td. How is possible to remember the height to the td from first table and to add that on td from second table in order to have both td same size.
In my example only first two tr are displayed ok the other two are displayed not ok because of description of first table td.

fiddle example:
http://jsfiddle.net/Ksb2W/45/

   for bounty  please check this example to see the difference on chrome and ie8:

http://mainpage.ueuo.com/

Thank you.

  • 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-03T12:06:05+00:00Added an answer on June 3, 2026 at 12:06 pm

    If I’ve understood you correctly you want the heights within each row of both tables to be the same?

    If so, this should work:

    $("table:first tr").each(function(i) {
        $("table:last tr").eq(i).height($(this).height());
    });
    

    Obviously the use of :first and :last selectors is not ideal, you should amend those to be id selectors.

    Example fiddle


    UPDATE

    The solution to the problem you’ve mentioned in your bounty is because of the border on the td elements not being accounted for.

    Replace height() with outerHeight() when checking the current row and it should work fine:

    $("table:first tr").each(function(i) {
        $("table:last tr").eq(i).height($(this).outerHeight());
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a view table which is a union of two separate tables (say
I have two separate sets of tables in the same database that model the
I have a list of addresses in two separate tables that are slightly off
I have two separate applications (both part of the same system) that share a
I have a query which searches two separate fields in the same table... looking
I currently have a message system which writes to two tables, sent and received
I'm using SQL-Server 2005. I have two tables Users and Payments which has a
Which is a better design approach: Having separate link/association tables for each type of
I'm setting up a directory application for which I need to have two separate
How can I use two different tables for one entity in Symfony? I have

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.