WordPress.org

Support

Support » Themes and Templates » [jQuery] Dynamic height for DIV

[jQuery] Dynamic height for DIV

  • agahmemnon
    Member

    @agahmemnon

    Hello, i want to do div height same like height of browser like here: http://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?

Viewing 15 replies - 1 through 15 (of 18 total)
Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘[jQuery] Dynamic height for DIV’ is closed to new replies.