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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:40:08+00:00 2026-06-10T23:40:08+00:00

I am having trouble styling a form. The section labelled destination group I cannot

  • 0

I am having trouble styling a form. The section labelled destination group I cannot get it to align vertically. See screenshot below. I have added color borders to help with debugging of the css.

enter image description here

I have created a js fiddle for this
http://jsfiddle.net/uuNTC/

Below is a stripped down version of the code

HTML

<ul id="ulFilterList">
  <li>
     <div class="filterLabel" id="labelDates">Dates</div>

          <input type="text" value="03/09/2012" name="dateFrom" id="dateFrom" class="dateInputs">
          <input type="text" value="09/09/2012" name="dateTo" id="dateTo" class="dateInputs">

  </li>
  <li>   
      <div class="filterLabel" id="labelOnRequest">Include "On Request" With:</div>
      <select name="onRequest" id="onRequest">
          <option selected="selected" value="1">Stop Sell</option>
          <option value="2">Available</option>
      </select>

  </li>
  <li>

      <div class="filterLabel" id="labelDestinationGroups">Destination Group:</div>
          <select size="10" multiple="multiple" name="destinationGroups[]" id="destinationGroups">

            <option value="Tunisia All">Tunisia All</option>
            <option value="Turkey All">Turkey All</option>
            <option value="Turkey PNR">Turkey PNR</option>
            <option value="UAE Abu Dhabi ">UAE Abu Dhabi </option>
            <option value="UAE All Dubai">UAE All Dubai</option>
            <option value="VIE">VIE</option>
            <option value="VIE">MORE</option>
            <option value="VIE">MORE</option>
            <option value="VIE">MORE</option>
            <option value="VIE">MORE</option>
            <option value="VIE">MORE</option>
            <option value="VIE">MORE</option>
          </select>
  </li>
</ul>

the css

ul#ulFilterList,
ul#ulFilterList li  { margin: 0px; padding: 0px }

.dateInputs { margin:0px; text-align:left; width: 50px; display: inline-block;   }

#ulFilterList { width: 100% }

ul#ulFilterList li
{
  list-style:none;
  margin-bottom: 5px;
  border: solid 1px blue;
}


.filterLabel {
    font-weight: normal;  
    width: 29%;  
    display: inline-block;
    text-align:right;
    height: 100%;
    font-size: 11px ;
    margin-top: auto
}
  • 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-10T23:40:11+00:00Added an answer on June 10, 2026 at 11:40 pm

    One of the benefits of using display: inline-block; is that you can specify a vertical-alignment. In this fiddle I’ve set the vertical-alignment for the .filterLabel elements to vertical-align: top;. On the down-side, you’ll need to return to the default vertical-align: baseline; for labels that are next to single-line inputs (the “Dates” and “Include ‘On Request’ With” labels), or style the corresponding INPUT elements upwards a bit.

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

Sidebar

Related Questions

I have a shipping/billing input form and I'm having trouble styling the input fields
I'm having trouble styling a select list in an html form. Basically I want
Having trouble finding the first character of Field42 inside xpath, see below. Any suggestions?
I've made a javascript autocomplete, but i'm having trouble in its CSS styling. What
I'm a newbie at ASP.NET and am having trouble styling a DataList. I've lately
I am having a bit of trouble with styling by active links, and I
I'm having trouble finding a simple js web UI library that handles styling the
I am having trouble styling the text under the images. I have tried inline
I am using the Microsoft Surface SDK and I am having trouble styling the
I am having some trouble working on a wordpress theme. I am styling 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.