Created
April 18, 2016 18:01
-
-
Save iiiBird/faa612679940c7fc577c41112a747e52 to your computer and use it in GitHub Desktop.
Выравнивание высоты колонок
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function (){ | |
function setEqualHeight(columns) | |
{ | |
var tallestcolumn = 0; | |
columns.each( | |
function() | |
{ | |
currentHeight = $(this).height(); | |
if(currentHeight > tallestcolumn) | |
{ | |
tallestcolumn = currentHeight; | |
} | |
} | |
); | |
columns.height(tallestcolumn); | |
} | |
setEqualHeight($(".container .bla")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment