Round div height up to certain amounts
<p>I'm trying to keep various elements in a grid layout using Isotope and they need to expand to different sizes depending on the amount of content inside them, always incrementing up by a certain amount - a grid unit height is 77px with 7px gutters. The expanded width will always stay the same so isn't important here.</p>

<p>The min-height for an expanded element would be 329px, but if the calculated height goes to 330px or more then the min-height would need to be 413px (77px + 7px gutter). Then if the calculated height was > 414px then it would jump to the next threshold of 497px etc etc.</p>

<p>Any help setting this height value using JS? (mostly this is already done with jQuery).</p>
