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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:32:44+00:00 2026-06-06T18:32:44+00:00

I added a jQuery UI accordion here: http://www.letmagichappen.com/web_resources to accommodate a large amount of

  • 0

I added a jQuery UI accordion here: http://www.letmagichappen.com/web_resources to accommodate a large amount of data. The accordion works fine, but the size of the content area is much larger than needed for the content.

I reviewed the css:

.web_resources .ui-accordion { width: 100%; }
.web_resources .ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
.web_resources .ui-accordion .ui-accordion-li-fix { display: inline; }
.web_resources .ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
.web_resources .ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
.web_resources .ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
.web_resources .ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
.web_resources .ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
.web_resources .ui-accordion .ui-accordion-content-active { display: block; }

The HTML is pretty straight forward:

<h4>Chapter 1</h4>
<div>
<p><a href="http://www.ajronline.org/content/153/1/87.full.pdf">Rotator Cuff Tears: Prospective Comparison of MR Imaging with Arthrography, Sonography, and Surgery</a></p>
<p><a href="http://www.nejm.org/doi/pdf/10.1056/NEJM199407143310201">Magnetic Resonance Imaging of the Lumbar Spine in People without Back Pain</a></p>
<p><a href="http://www.ajronline.org/content/147/2/293.full.pdf+html">1.5 Tesla Surface Coil MRI of the Knee</a></p>
<p><a href="http://www.yogaresearchsociety.com/">Yoga Research Society</a></p>
<p><a href="http://www.rsna.org/">Radiological Society of North America</a></p>
<p><a href="http://www.apple.com">Sample 1</a></p>
</div>

Here is the code for the Accordion:

<script type="text/javascript">
$(function(){
   $(".web_resources").accordion({ header: "h4" });
});
</script>

I would appreciate some insights into what is causing the content area to display so big and how to bring it under control.

Thanks!

  • 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-06T18:32:46+00:00Added an answer on June 6, 2026 at 6:32 pm

    This was much simpler than I thought. By default Accordion “auto-heights” to the largest div. To change that requires to set it to:

    autoHeight: false

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I added a image hover effect using jquery : http://jsfiddle.net/roXon/HmTrw/ my site : http://windows7themer.com
According to the discussion comments here: http://api.jquery.com/append/ the .append() of a script evaluates the
I have a jquery-ui accordion widget listing project parts which works fine (they are
I am using Lazy Load Jquery plugin here on my test page: http://bloghutsbeta.blogspot.com/2012/03/testing-2_04.html And
I added Jquery toggle/show hide in my site (click the plus sign) http://pligg.marsgibson.info if
Here is my relevant jQuery code: $.get('sampleData.csv', function(data) { var lines = data.split('\r\n'); The
So I ran across this recently: http://www.nicalis.com/ And I was curious: Is there a
I'm using the marvellous DataTables jQuery plug-in; http://datatables.net/ Added the FixedColumns and KeyTable extras.
I am using JQuery Accordion and it works as it should and opens and
I have added JQUERY Galleria a site that I have created but am having

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.