Question

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?

Was it helpful?

Solution

So try

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

Demo: Fiddle

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top