I see with Firebug that there is an inline stlye height
of 856px
in #side-nav-container
. Remove that and it should work.
EDIT: The height is being set in the last part of your scripts.js
.
EDIT2: This is your actual scripts.js
:
jQuery(document).ready(function () {
$("#nav_1487666 li a").mouseover(function () {
$(this).parent().prev().find("a").css("border-bottom", "none")
}), $("#nav_1487666 li a").mouseout(function () {
$(this).parent().prev().find("a").css("border-bottom", "1px solid #790C0E")
}), $("#cssmenu > ul > li > a").click(function () {
var a = $(this).next();
return $("#cssmenu li").removeClass("active"), $(this).closest("li").addClass("active"), a.is("ul") && a.is(":visible") && ($(this).closest("li").removeClass("active"), a.slideUp("normal")), a.is("ul") && !a.is(":visible") && ($("#cssmenu ul ul:visible").slideUp("normal"), a.slideDown("normal")), 0 == $(this).closest("li").find("ul").children().length ? !0 : !1
}), $(function () {
var a = $("#content").height(),
b = $("#side-nav-container").height();
a > b ? $("#side-nav-container").css("height", a) : $("#content").css("height", b)
})
});
Take a look at the $("#cssmenu > ul > li > a") click function
. You are using slideUp/slideDown to do the accordion effect. Those functions, have a second parameter which executes when the animation is complete. So you need to do something like this:
function menuHeight() {
$('#side-nav-container').height('auto');
$('#content').height('auto');
var a = $("#content").height(),
b = $("#side-nav-container").height();
a > b ? $("#side-nav-container").css("height", a) : $("#content").css("height", b);
}
And on every slideUp/Down:
a.slideUp("normal", function() {
menuHeight();
})
Remove this:
$(function () {
var a = $("#content").height(),
b = $("#side-nav-container").height();
a > b ? $("#side-nav-container").css("height", a) : $("#content").css("height", b)
})
And replace it with:
menuHeight();
That's all, didn't try it, but it should work.