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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:23:54+00:00 2026-05-23T10:23:54+00:00

Which way should I choose to observe layout changes on a website? I use

  • 0

Which way should I choose to observe layout changes on a website?

I use the jQuery EqualHeight plugin on two content boxes, with a border-right on the first box to divide them.
If the height of the right box is taller, then the border doesn’t fit, that’s the reason why I use EqualHeight jQuery.

so far so good…

If the size of the right box changes, maybe because of an accordion or show/height effect, the height of the leftbox and so the border/divider stays the same.

So what is the simpliest way to observe layout changes, without recalling the equal height function on explicit actions (like show/hide toggles)?

Should I use a timer to check regulary on layout changes and execute the function or does this decrease performance?

As a side-note I could use a table or display:table to mimic the table behaviour, but this is a bit poor. I tried out Flexbox CSS rules and it’s awesome(ly experimental/unsupported).
So as simple fallback I like to set equal height via JS

  • 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-23T10:23:55+00:00Added an answer on May 23, 2026 at 10:23 am

    The easiest way is to know when these layout changes take place. This is not at some random time, there is always a way to say: “Hey, now it is changed”.

    The easiest way is to use jQuery functions that change the layout and use an event structure. For example, send a custom event when a change happens. The other elements can now adjust to that.

    The nice thing about jQuery is that almost every function has a callback. use the callback when some animation is done to send your custom event to other elements so they can adjust their height.

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

Sidebar

Related Questions

Is there a way to specify which namespace includes should be automatically added any
I'm really interested which way you guys use to effectivly debug a large (let's
I would like to program a image picker which should choose an image from
So I am trying to build a website which requires the use of tagging
Which platform should i choose ? QT or Symbian C++ ? Does QT have
Which way do you prefer to create your forms in MVC? <% Html.Form() {
Which way is better for removing float decimals places or is there a more
In which way could I call the function that automatically opens my annotation (with
I am wondering which way would end up being faster, selecting elements by: $('element[href=#my_link]');
I'm interested to find which way of creating box shadows with css is most

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.