Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Foundation Equalizer is setting height to inherit?

I am trying to get the Equalizer plugin of Foundation to work and the documentation makes it seem pretty simple but I have tried a few things to make it work and still can't figure out why it is not working.

I am calling foundation.min.js and activating it as you can see here: Code Snippet showing activation of Foundation

Here is my codepen http://codepen.io/anon/pen/ByQBYx

As you can see the height is not consistent across the 4 employees. From what I understand of Equalizer, it is supposed to keep equal height across the 'watched' elements.

like image 232
Fogolicious Avatar asked Dec 30 '14 20:12

Fogolicious


1 Answers

The reason this happens is because your divs are stacked. You need to specify if you want them to remain the same height when stacked.

$(document).foundation({
  equalizer : {
    // Specify if Equalizer should make elements equal height once they become stacked.
    equalize_on_stack: true
  }
});

Your new codepen: http://codepen.io/anon/pen/raWVbO

like image 166
cport1 Avatar answered Oct 22 '22 00:10

cport1