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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:29:17+00:00 2026-06-02T01:29:17+00:00

I havent much experience on jquery mobile or related mobile UI frameworks, I am

  • 0

I havent much experience on jquery mobile or related mobile UI frameworks, I am finding it difficult to align elements horizontally.

I want to horizontally align text field and select tag. so that they appear inline.

I tried data-type=”horizontal” and data-inline=”true”. but they are not working.

Here’s the code i am using,

<div data-role="controlgroup" data-type="horizontal">
      <label for="cs" class="fieldLabel">option 1: </label>
      <select name="cs[param_string_1]" id="cs[param_string_1]" data-inline="true">
          <option>options</option>
      </select>
      <input type="text" data-inline="true" style="width:100px" id="cs[param_num_1]" name="cs[param_num_1]"  />  
</div>  

Comments/Suggestions?

  • 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-02T01:29:18+00:00Added an answer on June 2, 2026 at 1:29 am

    Tom’s answer was useful. but that dint work exactly as per the need

    I used following to get the required output.

       <div data-role="controlgroup" data-type="horizontal">
           <table>
             <tr>
               <td width="30%">
                 <select name="cs_abc" class="fieldLabel" style="width: 100%" data-inline="true"  id="cs[abc]">
                   <option>...</option>         
                 </select>  
                 </td>
                 <td width="70%">
                   <input type="text" id="cs_xyz"  style="width:160px" data-theme="d"  name="cs[xyz]" />
                 </td>
               </tr>
             </table>
        </div>        
    

    One can use layout grids for this (Refer here)

    But layout grids may not give precise results, at least in my case i was not getting the needed alignment.

    Some good fiddles were useful.

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

Sidebar

Related Questions

I finally got apache2 with mod_wsgi working on Linux (havent much luck with windows
I havent had much exposure to the Canvas element in HTML5. I have done
I have the following html and I want to use jQuery to toggle the
First off - I haven't had much experience with Java yet, and I'm a
I’m scoping a new software project and haven’t had much experience with software development.
I don't have much experience with SQL and I'm pretty much lost when it
Background: I haven't had much experience with multi-process Perl scripts. I have a data
I haven't much experience with objective-c language. i am quite confuse with memory management
I haven't read much about it, but the author at the link below recommends
I haven't found much on thin packs, and the man pages' information is rather

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.