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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:32:23+00:00 2026-06-08T13:32:23+00:00

I use float in order to make a login form be displayd on the

  • 0

I use float in order to make a login form be displayd on the right side of the page in a black bar. But when if a user resize the window and make it have a small width the form goes up of the background-image. I want it to stop floating and do not move when it has width 100px. My website is http://greek.netii.net.
I use the following HTML code:

<form action='index.php?action=login' method='post'>
  <ul id='loginbar'>
    <li>Email:<input id='logemail' type='text' name='email' />
        Password:<input id='logpass' type='password' name='pass' />
        <input class='button' type='submit' name='action' value='Login' />
    </li>
    <li><div id='forgotpass' onclick='forgotpass();'>Forgot Password?</div></li>
  </ul>
</form>

And the following css code:

ul#loginbar {
    float:right;
    margin:25px 0px 0px 0px;
    list-style-type:none;
}
  • 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-08T13:32:26+00:00Added an answer on June 8, 2026 at 1:32 pm

    you dont need to float it to the right as it will come inwards on resizing……use this

    ul#loginbar
    {
    position: absolute;
    top: 10px;
    right: 10px;
    margin:25px 0px 0px 0px;
    list-style-type:none;
    
    }
    

    and also in the parent container of the form or the body add

    position: relative;
    min-width: 600px;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to use float numbers to case - endcase, but dot is problem.
Now i know to use the method of float.Parse but have bumped into a
I hardly use float:right in my css and now I did and came across
I am trying to use jQuery in order to make a pager for tumbs
I've recently started learning Spring Batch in order to make use of some of
Is it good to use float in table less design? What is the pros/cons
I load a texture with grayscale image using GL_LUMINANCE format. when i use float
I'm trying to use the text value from a text field as a float
I have a boost::unordered_multimap< std::vector<int>, float> . The keys that I use to query
Hello I'm trying to dynamically generate some inputs for my form, but it's not

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.