Skip to content

Instantly share code, notes, and snippets.

@joanhard
Last active January 25, 2016 20:56
Show Gist options
  • Save joanhard/6375966 to your computer and use it in GitHub Desktop.
Save joanhard/6375966 to your computer and use it in GitHub Desktop.
Make full height colum on css foundation zurb
<div class="row">
<div class="large-8 column">
<div class="main">My Main</div>
</div>
<div class="large-4 column full-height">
<aside class="sidebar">
My Sidebar
</aside>
</div>
</div>
$(".full-height").height($(".main").parent().height());
.full-height { display: table; }
.sidebar {
display: table-cell;
background: #eeeeee;
}
@andreawo
Copy link

if (Modernizr.mq('only screen and (min-width: 768px)')) {
$(".full-height").height($(".full-height").parent().height());
}

To adjust after resizing I like this small plugin:
http://forum.jquery.com/topic/the-resizeend-event

@killboxsarah
Copy link

I think this worked like a charm. We are cross device and cross browser checking in the morning, but if this worked like I think it did I owe you a hug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment