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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:51:00+00:00 2026-06-09T16:51:00+00:00

Here is my site’s body: (With twitter bootstrap 2.0) <div class=container> <div class=row-fluid style=text-align:

  • 0

Here is my site’s body: (With twitter bootstrap 2.0)

<div class="container">
  <div class="row-fluid" style="text-align: center">
    <div class="span12">
      <div class="page-header">
        <h1>Header</h1>
      </div>
      <form class="well form-search">
        <input type="text" class="span7 input-large search-query" />
        <button type="submit" class="span3 btn btn-primary" >Search</button>
      </form>
    </div>
  </div>
</div>

I want the text and the submit button to be centered and be fluid 7:3, but when I set the span class to them they break to a new line, the text on the first line and the input submit on the other line.
What could/should I do in order to make them be on the same horizontal line?

  • 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-09T16:51:01+00:00Added an answer on June 9, 2026 at 4:51 pm

    Update version 2.1.0 has been released, so you should check the offset solution below, as it is provided by default in this version (and probably future ones)


    It appears that bootstrap does not make input span float : github forms.less

    So here is what you could use :

    .form-span input[type="text"][class*="span"] { float: left; }
    

    Edit

    For fluidity, you need to use a .container-fluid because .container has a fixed size (which makes fixed the fluid grid inside).

    For the centering, I see 2 solutions:

    Using inline text centering : (definitely not the best choice)

    .inline-center { text-align: center!important; }
    .inline-center [class*="span"] { float: none!important; display: inline-block!important; }
    

    Or you can use the fluid .offsetX classes, which will be available very soon in the version 2.1 or in this gist

    <input type="text" class="offset1 span7 input-large search-query" />
    <button type="submit" class="span3 btn btn-primary" >Search</button>
    

    Demo (jsfiddle)

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

Sidebar

Related Questions

Firstly you'll find my site here. I have div: <div class=home style=background-image: url(http://payload51.cargocollective.com/1/7/237315/3336908/HomeImage_o.jpg); background-attachment:
Here's the code that is generated by default <div id=ui-datepicker-div class=ui-datepicker ui-widget ui-widget-content ui-helper-
Site here. If you notice, the checkmarks are align with the table. I want
I'm using two css files [for my fluid width site here][1]: one where the
Site here . Why is it that the code works for $('#club').change(function(event) but not
My test site here is working fine I believe (haven't tested it in all
You can view my site here - http://patiss-themes.com/planetary/ and as you can see on
I'm working on a site here where I include parts of the site that
I've got a test site here with two columns, both with absolute positioning. http://dl.dropbox.com/u/17844821/zeug/heighttest.html
I'm developing this site here for a client of mine: http://test.bebiafricanhairbraiding.com/osa/index.html I've encountered a

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.