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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With