I'm 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 large. so when i open that div/header. accordion goes beyond footer. How to set the height for accordion?

有帮助吗?

解决方案

So try

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

Demo: Fiddle

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top