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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:04:58+00:00 2026-06-14T02:04:58+00:00

We have the following form: <div class=form-horizontal> <fieldset> <legend>Reports</legend> <div class=control-group> <label class=control-label>Year</label> <div

  • 0

We have the following form:

    <div class="form-horizontal">
   <fieldset>
      <legend>Reports</legend>
      <div class="control-group">
         <label class="control-label">Year</label>
         <div class="controls">
            <select id="ddlYear" class="input-small">
               <option value="2011">2011</option>
               <option selected="selected" value="2012">2012</option>
            </select>
         </div>
      </div>
      <div class="control-group">
         <label class="control-label">Project</label>
         <div class="controls">
            <label class="" id="lbProjectDesc">House X repairs</label>
         </div>
      </div>
      <div class="control-group">
         <label class="control-label">Costs</label>
         <div class="controls">
            <div class="input-append">
               <input type="text" value="0,0" class="span2" id="tbCosts" disabled="disabled"  >
               <span class="add-on">€</span>
            </div>
         </div>
      </div>
      <hr>
      <div class="control-group">
         <div class="controls">
            <input type="submit"  value="Save" onclick="$(this).button('loading');" id="btnSave" class="btn btn-primary" data-loading-text="Saving...">
         </div>
      </div>
   </fieldset>
</div>​

http://jsfiddle.net/9JNcJ/2/

The problem is that the label lbProjectDesc (text= “House X repairs”) is not displayed correctly.

What class can we set or what change needs to be made to fix it?
(Preferrably the correct way, not a css hack)

  • 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-14T02:05:00+00:00Added an answer on June 14, 2026 at 2:05 am

    Taking into account Selva and davidkonrad responses we solved it like this:

    .form-horizontal .control-group .controls label {
     margin-top: 5px;
    }
    

    This way it affects all the cases where labels are inside horizontal forms but doesnt displace verticaly the description labels of other input types…

    Works too with padding-top: 5px;

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

Sidebar

Related Questions

I have the following html: <div class=container-fluid> <div class=row-fluid> <div class=span8> <form class=form-horizontal> <div
I have the following code (inherited from someone): <div class=feedback>&nbsp;</div> <form onsubmit=return false autocomplete=off>
I have the following form: <form class=lift:form.ajax> <div class=lift:StreamInput> <input type=hidden name=user value=USER />
I have the following form in cakephp: <div class=quickcontactDisplay> <?php echo $form->create('Enquiry',array('action'=>'add','class'=>'quickcontact')); echo $form->hidden('visitor_id',
I have the following html <form action= class=form-horizontal id=submitForm> <input class=required input-xxlarge type=text placeholder=Please
I have the following code: <form id=reg_form_pay class=fancy_form action= method=POST> <div class=wrap_input style=margin-bottom: 10px;>
I have the following form declaration: <div class=edit-dialog span-10 style=display:none;> <div class=edit-message span-10 style=margin-bottom:30px;>
I have the following AJAX form on my page: <form class=lift:form.ajax> <div class=lift:StreamInput> <input
I have the following form and controller. <%= form_tag do %> <div> <%= label_tag
I have the following mark up of a div that contains a form. The

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.