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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:33:11+00:00 2026-06-01T21:33:11+00:00

I have a simple jquery mobile site that includes a few buttons and a

  • 0

I have a simple jquery mobile site that includes a few buttons and a slider. The buttons stretch out to fill the whole horizontal space, but the slider does not. It feels very clunky. Is there any way to coax a jquery-mobile slider to fill the whole horizontal space?

<div data-role="page">
    <div data-role="header">
        <h1>header</h1>
    </div>
    <div data-role="content"></div>
    <div data-role="content" data-position="fixed" data-theme="a">
        <form>
           <input type="range" name="slider" id="slider-0" value="50" min="0" max="100"/>
        </form>
       <a id="button-1" href="#" data-role="button">Button</a>
       <a id="button-2" href="#" data-role="button">Button</a>
    </div>
</div>

Side note: this code includes two divs with data-role=”content”. Is that going to get me into trouble? jquery-mobile doesn’t like to put sliders into footers, but I need the slider to act like a footer with fixed position at the bottom of the display area.

  • 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-01T21:33:13+00:00Added an answer on June 1, 2026 at 9:33 pm

    If you are targeting a consistent screen size this would be pretty easy. By default in JQM 1.1RC2 I see them using 65% for the slider bar. The input field before the slider however is fixed at 50px. Try playing with .ui-slider width to get a closer value just be careful because it will look different depending on the screen size.

    div.ui-slider{width:80%;}

    Maybe something like 80% will work better for you. As for your second part I have no idea test it out and let us know.

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

Sidebar

Related Questions

I have simple jQuery Mobile site created using asp.net mvc 2 and uses basic
I have a jquery mobile website that has simple select. I have successfully tested
I am currently developing a mobile site using jQuery mobile. I have one simple
I have a simple Android App using simple js, jquery mobile and phonegap that
I have a simple jQuery code that runs on a web page that has
I have a single page jquery mobile application in which there are few parent
I've created a simple jQuery Mobile page - have put the relevant sample here:
I have a simple app developed with jQuery Mobile and implemented in PhoneGap. It
I have a very simple .NET MVC3 project set up using jquery mobile for
Trying to do a simple web app with jquery mobile. I have put together

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.