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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:32:52+00:00 2026-05-21T02:32:52+00:00

currently I have a very simple form with the following: <div class=datepicker> <p> From:

  • 0

currently I have a very simple form with the following:

<div class="datepicker">
   <p>
      From: 
      <span class="spanMonth">
         <div id="div_dateFromReports_month">
            <select></select>
         </div>
      </span>
      <span class="spanDay">
         <div id="div_dateFromReports_day">
            <select></select>
         </div>
      </span>
      <span class="spanYear">
         <div id="div_dateFromReports_year">
            <select></select>
         </div>
      </span>
   </p>
   <div style="clear: both;"></div>
</div>

Now, the classes on every span only contain a “float: left”, which as a result makes them float and place the “From” word to the right, which is of course unintended, is there any way to put the “From” word to it’s intended position without wrapping it?

Note: the tags were cut to avoid filling the question with unnecessary data.

It looks like this:

   _______   ________   ________
  |_______| |________| |________| From:

And I need it to look like this:

          _______   ________   ________
 From:   |_______| |________| |________| 

NOTE:
As I commented below, yes, I know, the broken HTML, sadly this is a part of a page which is already hacked with jQuery and lots of broken view helpers (Zend), right now all I’m trying is to fix this as I really can’t modify the structure, the SELECTs come from php, the spans containing the DIVs come from a Zend view helper and so on. As of right now, there’s not much I can do, you know how software companies are asking for things right away…hate to hack HTML, but right now it can’t be helped. Thank you for all your input 🙂

  • 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-05-21T02:32:53+00:00Added an answer on May 21, 2026 at 2:32 am

    Live Demo (Only tested in FireFox 3.6.x)

    Remove the float: left; and use this CSS:

    .datepicker span div { display: inline; }
    

    Alternate solution: (assuming you can edit the HTML)

    <div class="datepicker">
          From:
          <select></select>
          <select></select>
          <select></select>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a very simple model Coupon. I suddenly am interested to add
I have a simple form that has a list (dropdown list generated from a
Im about to create a very simple online event reservation application and currently have
I have a very large app, 1.5 million lines of C++, which is currently
Currently in our enterprise we have a situation that i think it's not very
im currently learning python (in the very begining), so I still have some doubts
I have a very simple model that includes the auto-filled field much like 'created'.
I am creating a very custom form on a symfony project and currently I
I am currently waiting for a very important announcement and I have created a
I have built a simple registration form shown below and Iam trying to get

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.