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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:13:26+00:00 2026-05-31T06:13:26+00:00

With jQuery Mobile, is there a way that I can have a navigation bar

  • 0

With jQuery Mobile, is there a way that I can have a navigation bar that takes up 200px (or a percentage) on the left that is separate from the .ui-content div? This would mean the navigation would stay static on the left as the content changes via swiping (transitions).

How would I go about setting this up? I can’t find any documentation on editing the content view or how to evade page transitions for certain content!.

example

The issue with my sample code is that the href links do not link anywhere. They simply do not work. When I put them inside data-role=”page”, then it works.

       <div id="nav">
            <ul>
                <li><a href="#one">One</a></li>
                <li><a href="#two">Two</a></li>
                <li><a href="#three">Three</a></li>
            </ul>
        </div>

        <div data-role="page" id="one" data-transition="slide">
            <div data-role="content" style="background-color:#ff0;">    
                <h1>One</h1>
            </div>
        </div><!-- /page one -->
  • 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-31T06:13:28+00:00Added an answer on May 31, 2026 at 6:13 am

    You can change the CSS for the data-role="page" elements to make space for your navigation bar:

    .ui-mobile [data-role="page"] {
        left : 200px !important;
        width : auto !important;
        right : 0;
    }
    #leftNav {
        position : absolute;
        top      : 0;
        left     : 0;
        width    : 200px;
        height   : 100%;
        z-index  : 100;
    }​
    

    #leftNav is the navigation bar element:

    <div class="ui-body-a" id="leftNav">
        <a data-direction="reverse" href="#zero">Zero</a>
        <a href="#one">One</a>
    </div>
    

    Here is a demo: http://jsfiddle.net/j8nkn/2/

    It’s not perfect, but this should get you started.

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

Sidebar

Related Questions

I know that there is no way of auto adding the JQuery Mobile App
Is there a way to disable the jQuery mobile feature that automatically hides the
I have an application in asp.net with jquery mobile. In this application people can
I have an input element that I am using with jQuery mobile. What happens,
I have a page that uses JQuery UI; in particular the Sortable interaction. The
We need to have some kind of app that we can deploy to an
I am attempting to create a jQuery plugin for my own use that can
I have a legacy web application that was written long before there were even
I have a need to use the tabs in my jquery mobile application. I
I started using jQuery Mobile some time ago, and as those that know jQuery

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.