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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:24:00+00:00 2026-06-17T17:24:00+00:00

I want the navbars to appear in a single line. I coded as it

  • 0

I want the navbars to appear in a single line. I coded as it was explained in jQuery mobile website. However the 2 <li> are appearing in two lines.

<head>  
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
        <meta name="language" content="en" />

        <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.0-beta.1/jquery.mobile-1.3.0-beta.1.min.css" />

        <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
        <script src="http://code.jquery.com/mobile/1.3.0-beta.1/jquery.mobile-1.3.0-beta.1.min.js"></script>

<body>
            <ul data-role="navbar" data-inset="true" data-filter="true" role="navigation" class="ui-navbar ui-mini">
                <li><a href="HolidayList.html" class="ui-btn-active ui-state-persist">Holiday List</a></li>
                <li><a href="#">Closed Locations</a></li>           
            </ul>
</body>
  • 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-17T17:24:01+00:00Added an answer on June 17, 2026 at 5:24 pm

    Seems that you missing the main div above nav bar.

    As you can see here in demo. Your code should be as like below.

    <div data-role="navbar">
      <ul>
        <li><a href="a.html" class="ui-btn-active ui-state-persist">One</a></li>
        <li><a href="b.html">Two</a></li>
      </ul>
    </div><!-- /navbar -->
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a single html page that I'm using jquery mobile on to create
I have to implemented two links in my navbar! However I want to add
There are two pages in my jQuery mobile application. When a list item on
Found this answer In Jquery mobile, Header and footers are always hiding, when clicking
How can I dynamically add a navbar to my jquery mobile application? From javascript
I have 2 divs on my page that I want to appear with one
Using jquerymobile theming, I want the navbars in the header to use a different
I am currently using jQuery Mobile for a Phonegap application and I was wondering
I have two navbars right at the top of my page: <section id=topnav> <ul>
I just learned jQuery over the last two days, so I'm kind of new

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.