Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Dec 2010
    Posts
    134
    Thanks
    17
    Thanked 6 Times in 6 Posts

    Varying max-height in JS Flexslider

    Hi,

    Does anyone know how I can vary the height of the flexslider depending on the browser height.

    E.G: http://www.alexandre-boyes.co.uk/pro...Fsearch%2Flist

    div class="flexslider" style="max-height: 258px;"

    The max-height changes dependant on height.

    Thanks

  • #2
    Regular Coder
    Join Date
    Dec 2010
    Posts
    134
    Thanks
    17
    Thanked 6 Times in 6 Posts
    Code:
    Worked out the answer.
    
    $(window).resize(function() {
    $('.flexslider').height($(window).height() - 100);
    });
    
    $(window).trigger('resize');
    Wasn't really a difficult question. Fixed


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •