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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:14:10+00:00 2026-05-24T11:14:10+00:00

I am struggling to see why 1 input element is not dropping to line

  • 0

I am struggling to see why 1 input element is not dropping to line up withe the label. I have tried various options, but still the same. I have included a grab and the css and would be grateful if someone could show me my error. Thanks

.adduserform {

        width:425px;
        font:12px Arial, Helvetica, sans-serif;
        color:#777;
        background-color:#fff;
        font-weight:bold;
        padding: 10px;

        }

.adduserform label {

            display:block;
            width:110px;
            float:left;
            font-weight:normal;
            font-size:12px;
            padding: 0 0 0 30px;
            z-index:1000;
            clear:both;

        }

.adduserform .inputbox {

            float:right;
            border:1px solid #ccc;
            font-family:Verdana, Arial, Helvetica, sans-serif;
            font-size:10px;
            width:40%;

        }

.adduserform textarea {

            padding:8px 3px 2px 3px;
            margin:2px 0 10px 3px;
            border:1px solid #ccc;

        }

.adduserform select {

            float:left;
            font-family:Verdana, Arial, Helvetica, sans-serif;
            font-size:11px;
            outline:none;
            clear:right;

        }

+++UPDATE HTML+++++

<dl>
 <dt>
   <label for="AUSR_phone">Phone:</label>
 </dt>
 <dd>
   <input id="AUSR_phone" name="AUSR_phone" type="text" size="32" maxlength="128" value = "" />
  </dd>
</dl>

Grab to show Input layout

  • 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-24T11:14:11+00:00Added an answer on May 24, 2026 at 11:14 am

    You’re floating the input box right, but the top select is not wide enough to force the input onto a second line. The bottom two are being forced down because the area is not wide enough to accommodate both input fields.

    You can try putting both your label and input/select inside a div and use float to control positioning within that div:

    html:

    <div>
    <label>text</label>
    <input type="text"/>
    </div>
    

    css:

    label {float:left; width:30%; margin:0 1em; }
    input, select {float:left; width:60%; }
    div {overflow:hidden; width:100%;}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a class which wraps ZipEntrys, but I'm struggling to see how I
I am really struggling to see why the following code will not work and
After attending a talk on Oslo/M I am struggling a bit to see the
Struggling with styling the mouse over for a button ... I have managed to
Still struggling to understand what best practices are with respect to macros. I'm attempting
Iam struggling with NHibernate and its lazyload. I have a structure which I simplified
been struggling with an issue now for a day or two. I have an
Attempting/struggling to get registration and sign-up working within an active admin project. I have
SOLVED! $('#bset1').click(function(event) { event.stopPropagation(); }); I have several radio buttons in the element. Everything
I'm struggling to read an int from the hidden field on aspx page. <input

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.