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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:34:30+00:00 2026-05-26T04:34:30+00:00

I want to have two elements stay on the same row. Right now I

  • 0

I want to have two elements stay on the same row.

Right now I have this code:

<fieldset data-role="controlgroup" data-type="horizontal">
   <label for="textinput">Text:</label>
   <input type="text" id="textinput"/>
   <input type="button" id="searchbutton" data-icon="search"  data-iconpos="notext" onclick="function()"/>
</fieldset>

This works. The label, the input field and the button will all be on the same row as long as you view it in fullscreen in your computer browser. But if we make the window smaller, all three elements will be shown on one row each. Is there any way to make the label appear on one row, and the input field + button on the row below?

  • 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-26T04:34:31+00:00Added an answer on May 26, 2026 at 4:34 am

    You need to override the jQM enhancements:

    • http://jsfiddle.net/E4EVT/10/
    • http://jsfiddle.net/E4EVT/36/ (Using the grid layout)
    • http://jsfiddle.net/E4EVT/42/ (Using the table layout)

    JS

    $('#textinput2').css('width','60%').css('display','inline');
    

    HTML

    <div>
        <!-- use span instead of label -->
        <span>Text:</span>
        <input type="text" id="textinput2"/>
        <br />
        <input type="button" id="searchbutton2" data-icon="search"  data-iconpos="notext" onclick="function()"/>
    </div>
    

    I think you might want to look into the grid layout jQM offers

    • http://jquerymobile.com/demos/1.0rc1/docs/content/content-grids.html
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to be able to have two Haml elements on the same line.
I have two elements, I want to apply same background style, but different font
I have two draggable elements on the same x axis. I want to reproduce
I have two STL containers that I want to merge, removing any elements that
I want to have two items on the same line using float: left for
I want to have two EntityManagerFactories ( org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean in this case), with each of
In Ruby, I want to have two threads running at the same time, and
I want to have two TextView elements appear side by side (in a list
I have two span elements. I want them to sit side-by-side and contain some
I have two double data elements in an object. Sometimes they are set with

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.