Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Jumpy Footer due to accordion

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #181226
    kwerty
    Participant

    hi,

    could anyone help me to figure it out why the footer is jumping up and down as i am clicking on the accordion heading and how to fix this issue.

    thanks.

    Demo Page: http://codepen.io/anon/pen/dyEBD

    #181253
    Paulie_D
    Member

    A quick read of the docs and a google search shows that you should set a fixed height for the accordion div.

    
    #accordion {
      height:600px;
    }
    

    And the use the heightStyle:fill option

    
      $(function() {
        $( "#accordion" ).accordion({
          heightStyle: "fill",
        });
      });
    

    http://codepen.io/Paulie-D/pen/qFICs

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.