---
title: "supernovaEqualHeights"
source: https://4property.com/topic/supernova/supernovaequalheights/
updated: 2023-09-01T09:51:37+00:00
---

# supernovaEqualHeights

Sets the height and styles of elements with a given class name to make them equal in height.

- **Type:** JavaScript function

Example code:

```
document.addEventListener('DOMContentLoaded', () => {
    // Make all buttons same height
    if (document.querySelector('.wp-block-button__link')) {
        supernovaEqualHeights('wp-block-button__link');
    }

    // Make all testimonial slides same height
    if (document.querySelector('.testimonial-body')) {
        supernovaEqualHeights('testimonial-body');
    }
});
```
