Set height in jquery ui accordion

I am using jquery ui accordion.

$(function() {
    $( "#accordion" ).accordion({
        collapsible:true,
        active : 'none',
        autoHeight: false,
         navigation: true
        });
  });

and using CSS

#accordion
{
    width:70%;
    height:400px;
    padding-top:80px;
    padding-left:100px;
}

But the content of my first accordion div is great. so when i open this div / header. The accordion goes beyond the footer. How to set the pitch for an accordion?

+4
source share
1 answer

So try

#accordion .ui-accordion-content {
    max-height: 200px;
}

Demo: Fiddle

+10
source

All Articles