Make the heights of elements on the same row the same.
Install package with NPM and add it to your dependencies:
npm install @mogusbi/jquery.equaliser --save
Include jQuery and the plugin to your page and then select the elements you wish to set equal heights to and call the equaliser
method.
<!doctype html>
<html>
<head>
...
</head>
<body>
<div class="row">
<div class="col-xs-4" data-equalise>...</div>
<div class="col-xs-4" data-equalise>...</div>
<div class="col-xs-4" data-equalise>...</div>
</div>
<script src="jquery.js"></script>
<script src="jquery.equaliser.js"></script>
<script>
$('[data-equalise]').equaliser();
</script>
</body>
</html>
Copyright © Mo Gusbi.
Licensed under the MIT license.