Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Foundation Equalizer not working #237

Closed
tconroy opened this issue Feb 20, 2015 · 1 comment
Closed

Foundation Equalizer not working #237

tconroy opened this issue Feb 20, 2015 · 1 comment

Comments

@tconroy
Copy link

tconroy commented Feb 20, 2015

Hello!

I'm trying to make an Equalizer component as per the Foundation docs, however it doesn't seem to be working with FoundationPress.

Below is my markup and a screenshot of what it produces.

  <div class="section-content row" data-equalizer>

    <div class="small-12 medium-4 columns">
      <div class="panel" data-equalizer-watch>
        test
      </div>
    </div>

    <div class="small-12 medium-4 columns">
      <div class="panel" data-equalizer-watch>
        test
      </div>
    </div>

    <div class="small-12 medium-4 columns">
      <div class="panel" data-equalizer-watch>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
        tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
        quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
        consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
        cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
        proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
      </div>
    </div>

    <div class="small-12 medium-4 columns">
      <div class="panel" data-equalizer-watch>
        test
      </div>
    </div>

    <div class="small-12 medium-4 columns">
      <div class="panel" data-equalizer-watch>
        test
      </div>
    </div>

    <div class="small-12 medium-4 columns">
      <div class="panel" data-equalizer-watch>
        test
      </div>
    </div>

  </div> <!-- .section-content -->

screenshot 2015-02-20 10 49 35

@FlatspinZA
Copy link

Separate the columns you want 'equalized' by rows, adding the 'data equalizer' attribute to each row.

i.e. Create a separate 'row' DIV for your 1st three panels, and another for your 2nd three panels.

capture_001_21022015_051542

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants