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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:39:30+00:00 2026-06-02T02:39:30+00:00

I’m creating an iPad app using Jquery Mobile, and would like to create a

  • 0

I’m creating an iPad app using Jquery Mobile, and would like to create a navigation bar using <div class="content-secondary">, and inside that navigation bar have expandible content

As it stands I can create a simple <li> based navigation inside the secondary div, but when I try to add expandible content, it does not render as expected – simply showing the expanded content without any header or way to collapse it. Have tried to create a JSFiddle to illustrate (Fiddle Link), but it seems that JSFiddle does not support secondary navigation panes, as no matter how much I expand the width it simply renders as continuous page content..

If you follow the Fiddle link above, you will see the navigation bar appended to the bottom of the main content. The collapsible content renders just fine. But if you construct a JQuery Mobile web page with the same code you will see the problem.

Some screen grabs below to highlight;

When screen is narrow – Nav bar follows after main body, collapse works just fine
When screen is narrow - Nav bar follows after main body, collapse works just fine

When screen widened, Nav bar becomes active but collapsible content behaves like a list
When screen widened, Nav bar becomes active but collapsible content behaves like a list

Any advice or thoughts? Is this a known problem or a design feature?

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-02T02:39:31+00:00Added an answer on June 2, 2026 at 2:39 am

    I presume you have used the CSS from the demo doc to create the primary secondary view, and thus have a file defining the behaviour of the two content blocks (there is no “content-secondary” in jquery.mobile-1.1.0.css). You will find a bit in the media queries like this:

    /* fix up the collapsibles - expanded on desktop */
    .content-secondary .ui-collapsible-heading {
        display: none;
    }
    .content-secondary .ui-collapsible-contain {
        margin:0;
    }
    .content-secondary .ui-collapsible-content {
        display: block;
        margin: 0;
        padding: 0;
    }
    

    This section hides the header (preventing you from collapsing it), and expands the collapsible content.

    By including this section prior to the media segments, you override the normal “Collapsing” behaviour and force it to always be open. Likewise, by removing it from the media segments, you force it to collapse again, on all widths / orientations.

    You will need to enable the “heading” to be able to see them, though (because by default it is hidden, and if its children are hidden, you can’t click on anything to show it. You do this by removing the segment;

    .content-secondary .ui-collapsible-heading {
        display: none;
    }
    

    from all subsequent media enquiries

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

Sidebar

Related Questions

I would like to count the length of a string with PHP. The string
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I would like to run a str_replace or preg_replace which looks for certain words
We're building an app, our first using Rails 3, and we're having to build
I am using Paperclip to handle profile photo uploads in my app. They upload
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text

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.