Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Latest commit

 

History

History
23 lines (20 loc) · 664 Bytes

File metadata and controls

23 lines (20 loc) · 664 Bytes

AngularJs-MatchHeight

An Angular JS directive I created for a work project to match div heights.

Usage:

  • Add angular-matchheight.js to your code:
<script src="angular-matchheight.js"></script>
  • Add a dependency to the angular-matchheight module in your application.
angular.module('MyApp', ['angular-matchheight']);
  • Add the iln-match-height attribute to the container of the elements you want to match
  • All elements within the iln-match-height parent will resize to match height
<div iln-match-height>
    <div>these</div>
    <div>will<br/>be<br/>the<br/>same<br/>height</div>
</div>