Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery Accordion: Shrink inactive items? Re: jQuery Accordion: Shrink inactive items?

#79400
Capt Otis
Member

Well your #accordion isn’t big enough to support all the items when 1 is expanded. Which is why one is moved to below the others. Try increasing the width of the div around it, and everything should work out.

Also, use $(document).ready() when you use jquery to initialize it correctly.