Skip to content

Instantly share code, notes, and snippets.

@iiiBird
Created April 18, 2016 18:01
Show Gist options
  • Save iiiBird/faa612679940c7fc577c41112a747e52 to your computer and use it in GitHub Desktop.
Save iiiBird/faa612679940c7fc577c41112a747e52 to your computer and use it in GitHub Desktop.
Выравнивание высоты колонок
$(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