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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:01:41+00:00 2026-05-24T18:01:41+00:00

[Horizontal Login Form] …they wouldn’t let me post a pic :( <!– {Header} {Email

  • 0

[Horizontal Login Form] …they wouldn’t let me post a pic 🙁

<!--
{Header}  {Email Input field} {Password Input field}  {Login Button}
                              {Forgot Password?} (..link is below Password field)
-->

Does anyone know how to make this form to look decent in all browsers, using standards compliant html and css? I need the span elements with a class of “Label” to overlay the input elements, and I need the Forgot Password to be positioned beneath the Password Input field and aligned to its left edge. I have a feeling there is a bulletproof way to write the markup and the css, but I’m just not seeing it. Here is what I have so far:

[HTML]

<div id="login" class="section">
    <div class="header">
        <h1 class="non-display">APPROVED MEMBERS</h1>
    </div>
    <form class = "Fields">
        <fieldset class = "UserName">
            <label>
                <span class = "Label"></span>
                <input class = "Value" type = "text" />
            </label>
        </fieldset>
        <fieldset class = "Password">
            <label>
                <span class = "Label"></span>
                <input class = "Value" type = "password" />
            </label>
        </fieldset>
        <input class="Login" type="button" value="LOG IN"/>
        <a class="ForgotPassword" href="#">Forgot Password?</a>
    </form>
</div>

[CSS] using Less.js

.header {
    display: -moz-inline-stack;
    display: inline-block;
    zoom: 1; /* inline-block hack for IE7 */
    *display: inline; /* inline-block hack for IE7 */

    h1 {
        padding: 1em 0;
        width: 400px;
        text-align: center;
    }
}

.Fields {
    display: -moz-inline-stack;
    display: inline-block;
    zoom: 1;
    *display: inline;

    .Label {
        display: inline;
        margin-left: 5px;
        padding-left: 5px;
    }

    .Value {
        display: inline;
        margin-left: 5px;
        padding-left: 5px;
    }

    .Login {
        position: relative;
        padding: 2px 7px;
        .input-button(#fff);
    }

    .ForgotPassword {
        position: absolute;
        top: 35px;
        right: 150px;
        text-decoration: none;
    }
}

Its close, but the “Forgot Password?” has proven extremely difficult to align to the left edge of the Password field. I’m using Less.js to write more concise css and make use of variables and mixins, but feel free to write any solution you have in straight css.

Thanks for the help!

UPDATE:

Thank you to the two people who submitted an solution. But I decided to keep the markup that I have and use a new technique that looks to hold a lot of promise: Responsive Web Design. I think the idea was first proposed by Ethan Marcote. It allows for precise, proportional layouts, using percentages based off of fixed width ratios. It makes a lot of sense from a design perspective. You owe it to yourself and your clients to check into this, its flat out brilliant.

  • 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-24T18:01:42+00:00Added an answer on May 24, 2026 at 6:01 pm

    I’m not sure how rigidly you have to stick with your HTML structure, but the main issue is that the ‘Forgotten password?’ link is not associated semantically with the password field in your HTML. This will make it incredibly difficult to position, and even worse to handle when you have to make changes to the form.

    I have made a few small (:P) changes to both your HTML and CSS; you can have a look at my jsfiddle here.

    You’ll notice I’ve replaced all your fieldset tags with a ul and li tags, and moved your link into the same li as the password field.

    EDIT: In fact here’s the same layout you described in the beginning of your question: http://jsfiddle.net/Larry/5m5Sf/5/

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

Sidebar

Related Questions

I have a CGI page Login.cgi with a form where I need to enter
A horizontal compass looks something like this if you are facing due East (90
I have a horizontal css menu with 5 items. e.g 1) Home 2) Users
I'm looking into horizontal partitioning for a table that has time-series data in it.
this editor is horizontal http://tinymce.moxiecode.com/examples/simple.php and I seem to find only horizonal editors, has
I am doing an horizontal dropdown menu. It looks like this : [menu1][menu2][menu3][menu4] But
I know that horizontal partitioning...you can create many tables. How can you do this
I just want that horizontal div (about 50 pixels tall) that span across the
I have a horizontal list on which I have placed borders on the li
I have created a horizontal menu with 5 tab options using a ul and

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.