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

The Archive Base Latest Questions

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

I realize for the most part CSS is the best way to achieve even

  • 0

I realize for the most part CSS is the best way to achieve even height elements. However, in certain situations where we are dealing with a page or CMS we don’t have full control over, I think a jQuery solution would be very handy.

I’m wondering how I would achieve the following in jQuery. I’m not very familiar with jQuery syntax, but here is my watered down pseudo jQuery / English syntax… Does this make sense, or is there a simpler way of achieving this? I realize the following code does not work in the slightest, it’s just my way of trying to contribute towards a solution, and pitch in a bit in the logic department:

$('div.columns')each.get.height;
create an array of the height values
grab the largest value in this array
$('div.columns')each.css(height: $max-height);

Once you stop laughing at my pseudo-code, any ideas?
Thanks!!

  • 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-05T03:37:25+00:00Added an answer on June 5, 2026 at 3:37 am

    Try something like this:

    var maxHeight = -1;
    $('div.columns').each(function() {
        if ($(this).height() > maxHeight) {
            maxHeight = $(this).height();
        }
    });
    $('div.columns').height(maxHeight);
    

    Note: This is an untested code. But it should have the rudimentary concept in place for you. Your original concept was close, but an array is not needed here if you only want to retain the maximum height value.

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

Sidebar

Related Questions

I realize the code below is not the most efficient way of grabbing elements,
I realize that there are many similar questions, but most involve scaling down the
I realize that tinyint is a single byte integer (by the way, is it
Say I have an array of 10 elements. Another part of my program determines
I realize this question is the reverse of most of this sort. In other
I realize this is syntactically bad but I figure it somewhat explains what I'm
I realize that virtual template functions are not allowed in c++. Because of my
I realize that a SO user has formerly asked this question but it was
I realize that TWTweetComposeViewController is new to iOS 5 (which is now a bit
I realize there is a very interesting technique, to get Context in Android in

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.