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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:12:51+00:00 2026-05-19T22:12:51+00:00

I am stuck on figuring out some css, I need a section of my

  • 0

I am stuck on figuring out some css, I need a section of my form to look like the following,

CSS float left

I have tried every variation I can think of,

I have given the labels a fixed width and floated them left, then given the inputs the same width and floated them left.

I am all out of ideas, how can I achieve this please?

  • 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-19T22:12:52+00:00Added an answer on May 19, 2026 at 10:12 pm
    <form>
      <label for="company">
        <span>Company Name</span>
        <input type="text" id="company" />
      </label>
      <label for="contact">
        <span>Contact Name</span>
        <input type="text" id="contact" />
      </label>
    </form>
    
    label { width: 200px; float: left; margin: 0 20px 0 0; }
    span { display: block; margin: 0 0 3px; font-size: 1.2em; font-weight: bold; }
    input { width: 200px; border: 1px solid #000; padding: 5px; }
    

    Illustrated at http://jsfiddle.net/H3y8j/

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

Sidebar

Related Questions

I am stuck figuring out a working SQL Query for the fallowing: I need
Hey all, i am in need of some help with figuring out how to
I'm stuck with some syntax on figuring out which of 2 buttons in a
I need some help figuring out what I'm doing wrong here. I am trying
I am currently somewhat stuck figuring out an elegant solution to my following problem:
I'm stuck figuring out the best practice... I want to create a following system
I need some help figuring out this for loop logic. I know exactly what
I'm currently working on my own PHP Framework, and I need some help figuring
I have been stuck on this problem for quite awhile... I hope someone out
Ive got a bit stuck figuring it out for the negative direction? it must

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.