Skip to content

Instantly share code, notes, and snippets.

@Comandeer Comandeer/test.html
Last active Aug 29, 2015

What would you like to do?
rAF makeEqual
<!DOCTYPE html>
<html lang="pl" dir="ltr">
<meta charset="UTF-8">
html, body
margin: 0;
padding: 0;
height: 100%;
float: left;
width: 33%;
background: #f00;
background: #0f0;
<div class="col">1</div>
<div class="col">2</div>
<div class="col">3</div>
<script>(function equalHeight(container, cols, prev)
var h = container.innerHeight ? container.innerHeight : container.scrollHeight;
if(prev !== h)
{ = h + 'px';
prev = h;
equalHeight(container, cols, prev);
}(window, []'.col'))));</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.