$(document).ready(function(){ var twoHeight = $("#insideColTwo").height(); $("#subNav").height(twoHeight - 22); });