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?
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
Post a Comment