Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to anchor the first <h3> element of jQuery Accordion?

I'm using jQuery Accordion with 6 <h3> headers and several <div> sub elements. When I open all the sections and then close them again. The accordion ends up about 100px lower down the page.

Is there a way to anchor the first <h3> so that the Accordion always ends up closed in the same place?

like image 590
blarg Avatar asked Nov 13 '22 07:11

blarg


1 Answers

Here's how I fixed it. The 'top' and 'left' parameters give the position of the accordion specific to my page.

#accordion:first-child
{
position: absolute;
top:51px;
left:8px;

}
like image 149
blarg Avatar answered Nov 14 '22 23:11

blarg