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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:40:39+00:00 2026-06-15T17:40:39+00:00

I would like to have a form which has a horizontal layout on the

  • 0

I would like to have a form which has a horizontal layout on the first level, but then within one row there can be a form “inline” which I want to have a vertical (the default) layout. Is there an easy way to achieve this?

Note: .form-inline doesn’t do what I’m looking for, as it doesn’t put the inside labels on top of the inputs.

So far I have something like this:

<div class="form-horizontal">
    <div class="control-group">
        <label class="control-label">
           outer label
        </label>
        <div class="controls ### SOMETHING TO CLEAR/OVERRIDE form-horizontal ###">
            ### INLINE FORM WITH SAME STRUCTURE IS HERE ###
        </div>
    </div>
</div>
  • 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-15T17:40:40+00:00Added an answer on June 15, 2026 at 5:40 pm

    Boostrap can’t do this by default, but I’ve included this in my fork https://github.com/jasny/bootstrap/blob/master/less/jasny-forms.less#L40

    Please consider using Jasny’s extensions to Bootstrap http://jasny.github.com/bootstrap

    or just use this CSS

    .form-vertical .form-horizontal .control-group > label {
      text-align: left;
    }
    .form-horizontal .form-vertical .control-group > label {
      float: none;
      padding-top: 0;
      text-align: left;
    }
    .form-horizontal .form-vertical .controls {
      margin-left: 0;
    }
    .form-horizontal .form-vertical.form-actions,
    .form-horizontal .form-vertical .form-actions {
      padding-left: 20px;
    }
    .control-group .control-group {
      margin-bottom: 0;
    }
    

    With the HTML

    <form class="form-horizonal">
        # Horizal controls here
    
        <div class="form-vertical">
            <div class="control-group">
                <label class="control-label">Label</label>
                <div class="controls">Something here</div>
            </div>
        </div>
    </form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a form which uses the JQuery Validation Plugin and would like to
I have a form which includes a data sheet. I would like to make
I have a form that has label values that I would like to pass
I have a form which has two inputs. The first input allows a user
I have a form which has fields pre-filled with a default value, like this:
I have a form which has First Name, Last Name text boxes, Radio button(Yes
I have a form for which I would like to toggle a field's required
I would like to have Ajax form in Rails so i'm using form_remote_tag. The
I would like to have a form that can submit to two different action
I have a Rails form for email, and I would like to have auto-completion

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.