javascript - Bootstrap Accordion - Set to specific height -


i have bootstrap accordion has list mile long, , set opened height 200px. when in css, accordion opens, full height, sets 200px after has been opened.

i attempted style not collapse class, collapsing , collapse in classes, , have accordion pop open no animation.

css:

.collapse.in, .collapse{   height: 200px;   overflow-y: scroll; } 

where need set height accordion opens 200px , stops animation @ 200px?

example: http://jsfiddle.net/murphy1976/c8nw2jmo/1/

the content height of to-be-opened page bigger. bootstrap accordion build display all.

if make wrapping html element fixed height, works, demonstrated in updated fiddle

<form id="max200">  #max200 {     height: 200px;   overflow-y: scroll; } 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -