Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8204331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:51:58+00:00 2026-06-07T07:51:58+00:00

I am trying to implement a js accordion I found and I’m having problems

  • 0

I am trying to implement a js accordion I found and I’m having problems with it. The titles are supposed to cleanly slide up to the top of the page and drop the content below. That is not what is happening. There is some obvious jumpiness going on when you look at it. It’s not smooth at all. I don’t know much about js so please explain your answers carefully. Thanks so much!

http://imip.rvadv.com/accordion.html

EDIT:
After replacing the js with the default file from the site I got it from, nothing changed. Here is a jsfiddle for it

http://jsfiddle.net/imakeitpretty/ruwjn/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T07:52:01+00:00Added an answer on June 7, 2026 at 7:52 am

    Check this: http://jsfiddle.net/luissanchezm86/ruwjn/4/

    The problem wasn’t the .js, and you don’t have to write it all on jsfiddle, since it’s JQuery UI, you can simple check it to include it, if it’s another external .js, use it as a resource, check fiddle’s documentation for that.

    Besides that, the other problem was your CSS markup, you had a lot of duplicated classes in that fiddle, it was a bit of a mess.

    The main problem with the jumping was the:

    .st-accordion ul li.st-open > a{
        margin-top: 70px;
    }
    

    I just commented that margin-top: 70px;, and it fixed 75% of the problem, I recommend you to use the css that I arrange on the jsfiddle.

    Hope it helps you!


    UPDATE

    Now, if you want to scroll all the way up like http://jsfiddle.net/luissanchezm86/ruwjn/5/ you need to make the body higher on height:

    body {
        height: 2000px; 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Found a really nice code for Accordion nav and am trying implement on our
I am trying to implement a android app. I have problems with TextView in
I am trying to implement fancybox and jqueryui's accordion into my site, I can
Hi I am trying to implement a feature with jquery accordion much like the
Im trying to implement a single aspx page with several externals dll's. Following Zimmergren's
I'm trying to implement modular extensions into a codeigniter 2 setup but am having
Im trying to implement the Miller-Rabin primality test according to the description in FIPS
I'm trying to implement a table view which should display cells according to the
For a game, I am trying to implement a scores table. According to game
I'm trying implement A* Start path finding in my games(which are written with JavaScript,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.