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

The Archive Base Latest Questions

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

This is what I have right now: http://jsfiddle.net/w6PAC/3/ I want the select button to

  • 0

This is what I have right now: http://jsfiddle.net/w6PAC/3/

I want the select button to the right of the count, without it affecting the vertical size and alignment of the list item.

I have tried:

  1. creating CSS based on the .ul-li-count class but only managed to break the jQM enhancement.
  2. creating the buttons separately outside the listview but I was unable to align them vertically.
  3. playing about with fieldsets, data-roles, divs, etc with no success.

AFAIK it is not possible to invoke a select programmatically otherwise I would add a plain button to the listview.

Any help greatly appreciated, including suggestions for alternative document layouts.

  • 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-27T03:13:32+00:00Added an answer on May 27, 2026 at 3:13 am

    If I understand correctly then you can use some pretty simple CSS to alter jQuery Mobile’s default layout:

    /*absolutely position the <select> to the right side of the <li> and center it within the <li>*/
    .custom_list .ui-select {
        position   : absolute;
        right      : 10px;
        top        : 50%;
        margin-top : -1.4em;
    }
    /*add some extra padding to the right side of the <li> to make the text wrap properly*/
    .custom_list .ui-li {
        padding-right : 80px;
    }
    /*change the position of the <span class="ui-li-count"> to make room for the <select>*/
    .custom_list .ui-li-count {
        right : 50px;
    }
    

    Note that I am using the .custom_list class to target the desired <ul> element so for this solution to work properly you must remove .custom_list from the CSS declarations above or add the .custom_list class to the <ul> element you want to customize.

    Here is a jsfiddle of the above solution: http://jsfiddle.net/jasper/w6PAC/4/

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

Sidebar

Related Questions

I have this: http://jsfiddle.net/ETm93/ Now my floated element, leftPanel is having a margin-right: 20px;
I have this javascript code that creates a slider: http://jsfiddle.net/samccone/ZMkkd/ Now, i want to
So i have this three column layout. http://jsfiddle.net/quickburp/fwQq4/50/ .. Now, if you click on
I have this right now: <%= f.select :credit, (0..500) %> This will result in
I'm new to ASP.NET MVC so this could have an obvious answer. Right now
You can see the implementation here http://jsfiddle.net/xNSFA/ Right now, when you hover over the
http://jsfiddle.net/EGjc9/ I have several <button> elements on a page, and I need to associate
jsFiddle is here: http://jsfiddle.net/qBQD4/ It's pretty simple really; I want the right arrow to
This is what I have right now for a file residing on the same
I have this code right now to get the row value from jquery grid..

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.