[jQuery] Dynamic height for DIV
-
Hello, i want to do div height same like height of browser like here: https://www.shegy.nazwa.pl/themeforest/exit/normal/
I found that code:
$(document).ready(function() { $(function() { if($(document).height() <= $(window).height()) { $('#header').css({ 'height': ($(window).height()) }); $(window).resize(function(){ $('#header').css({ 'height': ($(window).height()) }); }); } }); });
but it;s not working /; What is wrong?
- The topic ‘[jQuery] Dynamic height for DIV’ is closed to new replies.