Set a banner or other element to the full height of window

Set a banner,map,video or other element to the full height of window, but user can keep scrolling down to the rest of page.


//jquery
function setHeight() {
    windowHeight = $(window).innerHeight();
    $('#map-container').css('min-height', windowHeight);
};
setHeight();

$(window).resize(function () {
    setHeight();
});

Be the first to comment “Set a banner or other element to the full height of window”

This site uses Akismet to reduce spam. Learn how your comment data is processed.