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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:59:20+00:00 2026-06-11T09:59:20+00:00

Bootstrap has a lot of examples for types of forms . I’m interested in

  • 0

Bootstrap has a lot of examples for types of forms. I’m interested in using the “Horizontal form” which looks like this

Picture.png

This is what it looks like after outlining some elements with the web inspector toolbar:

Picture 2.png

I am working inside of a popup modal and space is already a bit tight. I tried adding bootstrap’s grid system’s .span1 and .span2 to the labels as a class, but it is not giving the desired behavior.

Is there a way to use some other aspect of bootstrap to get the desired behavior (i.e. tighten up the amount of space that labels on a horizontal form take up)? What is the proper way to do this? I’m using bootstrap version 2.1

  • 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-11T09:59:21+00:00Added an answer on June 11, 2026 at 9:59 am

    i am not aware if bootstrap has got something defined for it..below is a workaround..

    <div class="control-group">
    <label class="control-label" style="width:auto" for="inputEmail">Email</label>
    <div class="controls" style="margin-left:auto">
    <input type="text" class="input-small" id="inputEmail" placeholder="Email">
    </div>
    </div>
    

    i added style="width:auto" which was default 140px and style="margin-left:auto" which was default 160px. Also class="input-small" to reduce the input field width to squeeze out more space so that it fits in modal..

    Now you tweak further to fit it as per your needs..

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

Sidebar

Related Questions

I'm using twitter bootstrap. It has collapse module. I'm using it like this. <a
I am using the Bootstrap CSS framework that has this: .dropdown-menu { left: 0;
I'm developing a site using Bootstrap which has 28 modal windows with information on
Twitter Bootstrap has a form control that would glow on the borders when in
I'm using Bootstrap on a web app that has some pages that contain iframes.
I'm using the Twitter Bootstrap fixed layout where the container div has: margin-left: auto;
I am using twitter bootstrap and have a fixed nav bar. The navbar has
I have a table which has a foreign key referencing itself. This would be
The twitter bootstrap code has a lot of CSS properties with a !default at
I am deploying an application that has a bootstrap script, which installs a bunch

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.