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

  • Home
  • SEARCH
  • 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 758939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:32:18+00:00 2026-05-14T15:32:18+00:00

I am planning to use the jQuery UI Accordion and also the default theme

  • 0

I am planning to use the jQuery UI Accordion and also the default theme provided

I see that the jQuery UI Accordion uses the following classes from this url link text

<div class="ui-accordion ui-widget ui-helper-reset">
  <h3 class="ui-accordion-header ui-helper-reset ui-state-active ui-corner-top">
    <span class="ui-icon ui-icon-triangle-1-s"/>
    <a href="#">Section 1</a>
  </h3>
  <div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active">
    Section 1 content
  </div>
  <h3 class="ui-accordion-header ui-helper-reset ui-state-default ui-corner-all">
    <span class="ui-icon ui-icon-triangle-1-e"/>
    <a href="#">Section 2</a>
  </h3>
  <div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom">
    Section 2 content
  </div>
  <h3 class="ui-accordion-header ui-helper-reset ui-state-default ui-corner-all">
    <span class="ui-icon ui-icon-triangle-1-e"/>
    <a href="#">Section 3</a>
  </h3>
  <div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom">
    Section 3 content
  </div>
</div>

I do not want to use the entire CSS from the theme file, just the ones required for the UI Accordion. However I am not able to create the same effect. Anyone can help?

  • 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-05-14T15:32:18+00:00Added an answer on May 14, 2026 at 3:32 pm

    DEMO: http://so.lucafilosofi.com/jquery-ui-accordion-css/

    updated to latest jQuery version 10

    you don’t need to have all that code! you have copied the jquery example that explane how jquery create the full accordion widget!

    you just need to have like this:

    HTML

    <div id="accordion">  
      <h3><a href="#">caption 1</a></h3>  
      <div>some text here    
      </div><h3><a href="#">caption 2</a></h3>  
      <div>some text here    
      </div><h3><a href="#">caption 3</a></h3>  
      <div>some text here    
      </div><h3><a href="#">caption 4</a></h3>  
      <div>some text here    
      </div>
    </div>
    

    jQuery / JS

    $(function() {
      $("#accordion").accordion();
    });
    

    CSS

    .ui-accordion .ui-accordion-header {
      cursor: pointer;
      position: relative;
      margin-top: 1px;
      zoom: 1;
    }
    .ui-accordion .ui-accordion-li-fix {
      display: inline;
    }
    .ui-accordion .ui-accordion-header-active {
      border-bottom: 0 !important;
    }
    .ui-accordion .ui-accordion-header a {
      display: block;
      font-size: 1em;
      padding: .5em .5em .5em .7em;
    }
    /* IE7-/Win - Fix extra vertical space in lists */
    .ui-accordion a {
      zoom: 1;
    }
    .ui-accordion-icons .ui-accordion-header a {
      padding-left: 2.2em;
    }
    .ui-accordion .ui-accordion-header .ui-icon {
      position: absolute;
      left: .5em;
      top: 50%;
      margin-top: -8px;
    }
    .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;
    }
    .ui-accordion .ui-accordion-content-active {
      display: block;
    }
    

    NOTE: this minimum css require also the .ui-widget CSS see the demo!

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

Sidebar

Related Questions

I am planning to use jquery in Rails instead of prototype. I am not
We're planning to use standard ASP.NET user authentication for our application. However, by default
I'm in the process of planning an application that would make use of the
I am planning to use jQuery in my new website. I have some questions
I am planning to use jQuery UI Autosuggest for a search form. So I
I am planning to use jQuery Autocomplete (Not UI Autocomplete) plugin to fetch data
I was planning to use url routing for a Web Forms application. But, after
I'm planning to use MS entity framework for new web apps (come on EF
I am starting a normal Java SE project and i am planning to use
I was using CodeRush quite while ago and now I'm planning to use it

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.