Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. JavaScript
  3. jquery-match-height

jquery-match-height

MITJavaScript0.7.2

A jQuery plugin that makes the height of selected elements exactly equal, with responsive row-aware updates.

GitHubGitHub
3.1k stars757 forks0 contributors

What is jquery-match-height?

jquery.matchHeight is a jQuery plugin that automatically sets the height of selected HTML elements to be equal. It solves the common frontend challenge of creating uniform‑height boxes in grids or rows, especially when content varies in length. The plugin handles responsive updates, row wrapping, and cross‑browser inconsistencies.

Target Audience

Frontend developers and designers building jQuery‑based websites who need reliable equal‑height layouts without complex CSS workarounds.

Value Proposition

It provides a simple, battle‑tested solution for equal heights that works in older browsers (IE8+) and handles real‑world complexities like images loading, dynamic content, and responsive rows—where modern CSS alternatives like Flexbox or Grid may not be sufficient.

Overview

a responsive equal heights plugin

Use Cases

Best For

  • Creating equal‑height card layouts in jQuery‑based projects
  • Aligning product or content boxes in responsive grids
  • Maintaining uniform row heights in floated or inline‑block layouts
  • Supporting older browsers where CSS Flexbox/Grid is not available
  • Dynamically matching heights after AJAX content updates
  • Building galleries or portfolios with consistent tile dimensions

Not Ideal For

  • Projects built with modern frontend frameworks like React or Vue that have native layout solutions
  • Sites relying heavily on CSS transitions or animations for dynamic height effects
  • Teams aiming for zero-JavaScript or static site generation where client-side scripts are minimized
  • Developers who prioritize using modern CSS Flexbox/Grid and only need to support recent browsers

Pros & Cons

Pros

Cross-Browser Reliability

Works seamlessly in IE8+ and all modern browsers, correctly accounting for box-sizing, padding, and borders as per the features list, making it a robust choice for legacy support.

Responsive Row Handling

Automatically updates element heights on window resize and intelligently matches heights only within the same row for floated or wrapped layouts, ensuring consistent grids across devices.

Easy Data API

Allows applying equal heights via simple HTML data attributes (data-mh) without writing any JavaScript, enabling quick implementation as documented in the Data API section.

Performance Throttling

Includes throttled updates (default 80ms) to prevent performance issues during resize events, balancing smoothness and efficiency as mentioned in the advanced usage.

Cons

CSS Transition Incompatibility

Does not support CSS transitions or animations on height changes, which can cause unexpected results if such effects are present, a clear limitation admitted in the known limitations.

jQuery Dependency

Requires jQuery as a prerequisite, adding extra overhead and making it unsuitable for projects not using jQuery or those seeking lightweight, framework-agnostic solutions.

Manual Update Burden

Requires manual calls to _update() after any dynamic content changes (e.g., AJAX), which can be error-prone and adds maintenance complexity, as highlighted in the known limitations.

Frequently Asked Questions

Quick Stats

Stars3,067
Forks757
Contributors0
Open Issues72
Last commit8 years ago
CreatedSince 2014

Tags

#dom-manipulation#jquery#cross-browser#jquery-plugin#layout#plugin#frontend#ui-components#responsive-layout

Built With

J
JavaScript
j
jQuery

Included in

JavaScript34.9k
Auto-fetched 17 hours ago

Related Projects

A curated list of awesome lists - @sindresorhusA curated list of awesome lists - @sindresorhus

😎 Awesome lists about all kinds of interesting topics

Stars488,229
Forks36,016
Last commit24 days ago
javascript-algorithmsjavascript-algorithms

📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings

Stars196,317
Forks31,049
Last commit28 days ago
You Don't Know JSYou Don't Know JS

A book series (2 published editions) on the JS language.

Stars184,616
Forks33,466
Last commit5 months ago
Clean Code JavaScriptClean Code JavaScript

Clean Code concepts adapted for JavaScript

Stars94,733
Forks12,513
Last commit2 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub