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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:50:39+00:00 2026-06-12T16:50:39+00:00

I am using an accordion for the first time, but for some reason it

  • 0

I am using an accordion for the first time, but for some reason it doesn’t display correctly. The icon is behind the text and there is no padding on the left.

a minimal example looks like this:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
<title>test</title>

    <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link type="text/css" href="css/cupertino/jquery-ui-1.8.24.custom.css" rel="stylesheet" />
<script type="text/javascript" src="js/vendor/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="js/vendor/jquery-ui-1.8.24.custom.min.js"></script>
    <script type="text/javascript">
        $(function(){
            $("#accordion").accordion({ header: "h3", active: false, collapsible: true, fillSpace: true });
        });
    </script>
</head>
<body>
    <!-- Add your site or application content here -->
    <div id="accordion">
        <div>
            <h3>test</h3>
            <div>bla bla bla</div>
        </div>
    </div>

</body>
</html>

a screenshot of how it looks for me can be viewed here

Does anyone know how to solve it?

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

    Your markup needs a few tweaks:

    <div id="accordion">
        <h3><a href="#">test</a></h3>
        <div>bla bla bla</div>
    </div>​
    

    Example: http://jsfiddle.net/andrewwhitaker/WP29E/15/

    • 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 here and find some strange behavior when opening a
I have tried using the accordion plugin, but it does not work, and I
I am using the jQuery accordion plugin to make an accordion of some data.
Ok an have an accordion, but i am not using jQuery UI. This is
I'm using the jQuery DatePicker control for the first time. I've got it working
I'm trying to make a mobile application using jQuery Mobile and Phonegap. But first
I have two questions. First I am using a spry accordion for this website
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 built this accordion using the jquery ui accordion plugin, I sort of
I am building a custom control using the accordion control included with the Xpages

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.