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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:35:39+00:00 2026-06-07T15:35:39+00:00

I have divs structured like this: <div id=’head’> <div class=’graphData’> <table>…</table> </div> <div class=’graph’>…</div>

  • 0

I have divs structured like this:

<div id='head'>
    <div class='graphData'>
        <table>...</table>
    </div>
    <div class='graph'>...</div>
</div>

EDIT:

Sorry, I forgot to several important parts of the structure.

head, graphData and graph all have their min-heights set to 300px.

My problem is how do I change head and graph's min-height to match graphData's min-height when graphData's min-height increases or decreases? Any way to detect a css style change via jQuery or javascript?

graphData’s height changes because of dynamically generated rows from my DB.

  • 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-07T15:35:41+00:00Added an answer on June 7, 2026 at 3:35 pm

    There is no built-in way with CSS or jQuery to detect a change of this nature.
    What you might think of doing is checking the height of the element at intervals and comparing them to the last known value. If there are differences, that means the height has changed.

    var oldHeight = $("#graph").height();
    
    var heightChangeTimer = setInterval(function(){
      var newHeight = $("#graph").height();
      if (newHeight != oldHeight){
       oldHeight = newHeight;
       // do some actions on height change...
      }
    },100);
    

    For now, I’ve set the interval to every 100 milliseconds but you can tweak that value to suit your needs – perhaps make it slightly smaller IE. run the check more often…

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

Sidebar

Related Questions

I have some divs which are structured like this: <div> <div><a>more Info</a></div> <div><a>more segments</a></div>
I have a structure that looks like this: <div class=project_group> <table> <tr style=display:none> <td>...</td>
Ok, so i have a HTML structure like this: <div class=content> <div id=a1 class=article>
I have a HTML structure like follows <div id=answer-1> <a class=edit></a> </div> <div id=answer-2>
I have code like this: <div class='outer'> <div class='imgwrapper'><img /></div> <div class='caption'>This is a
I have 3 expand divs with the same strcuture. Something like: <div class=expand> <h3
I have a page that looks something like this: ... <div class=container> <div class=info>
I have two divs: <div class=outer> <div class=inner>Example</div> </div> And I have a jQuery
I have this structure in my dom: <label>London<input type=checkbox name=London></label><br> <div class=innerpost> <label>N1 2AB<input
I have html structure like below: <div id=banner-menu-holder> <div> <div class=avalible> <div class=items-holder> <div>

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.