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 8560045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:11:19+00:00 2026-06-11T16:11:19+00:00

I am using jquery ui with the accordion feature running. I have a <h3></h3><div></div>

  • 0

I am using jquery ui with the accordion feature running. I have a <h3></h3><div></div> with a lot of data in it which fills the page vertically. When you scroll down to click and open the next accordion selection it pulls way up the page, therefore hiding some of the content until I scroll back up.

Is there a way to prevent this? A way to on click make the currently selected h3 tag take the user to the top of the <h3> ?

EDIT: The main idea I am looking for here is making sure the <h3></h3> clicked on is not out of the viewing area. Ideally I’d like it to be about 50 or so px down from the top.

Here is a Fiddle of the Progress: http://jsfiddle.net/rwyvh/

  • 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-11T16:11:21+00:00Added an answer on June 11, 2026 at 4:11 pm

    Here is the jsFiddle. I had to use ui.newHeader to get the position inside the change event.

    $("#accordion").accordion({
        autoHeight: false,
        collapsible:true,
        navigation:true,
        active:false,
        change: function(event, ui) {
            $(window).scrollTop(ui.newHeader.position().top - 50);
        }
    });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using JQuery Accordion. I have this page here: http://www.hauppauge.com/site/support/support_colossus.html#tabs-6 What happens is
I have created an accordion using jQuery which collapses fine when the user clicks
I'm using jQuery accordion to implement the similar features which http://flavors.me have. I've designed
I'm using jQuery and have managed to paste together a simple accordion which can
I am using the jQuery accordion plugin to make an accordion of some data.
I have built this accordion using the jquery ui accordion plugin, I sort of
I am using JQuery Accordion, I want to hide all the sections on page
I am using jquery accordion effect when the clicks on a particular div the
I am using Jquery ui accordion , in that i have a text box
I have a standard jquery ui accordion and I load content into it using

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.