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

  • Home
  • SEARCH
  • 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 6167425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:30:38+00:00 2026-05-23T22:30:38+00:00

i need to allign element under RED arrow right under the element where BLACK

  • 0

i need to allign element under RED arrow right under the element where BLACK arrow is pointed at. In other words how do i allign element close enough to input like 2-5px.

https://i.stack.imgur.com/Q4IeX.png

code is here

CSS

 form.loginform 

{  
    font-family: Verdana,Arial,Helvetica,sans-serif;
    font-size: 16px;   
    border-radius: 10px;
    -moz-box-shadow: 0 0 10px rgba(0,0,0,0.5);
    -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.5); 

}


div.divbg

{
    width: 200px;  
    height: 167px;
    position: fixed;
    text-align: center;
    vertical-align: middle;
    margin-top: 30%;   
    margin-left: 40%;
    background-color: aliceblue;

}

a.register

{

    font-family: Geneva,Arial,Helvetica,sans-serif;
    font-size: 11px;

}

#pass 
{
    float: inherit;
    margin: 0;
} 

HTML

    <html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel=StyleSheet href="loginstyle.css" type="text/css" media="screen"/>
</head>
    <body>
        <div class="divbg">
            <form method="post" class="loginform">
            Логин  <div class="center"><input type="text" name="login"/></div><br/>
            <div id="pass">Пароль <div class="center"><input type="text" name="password"/></div><br/>
            <a href="#" class="register">хочу зарегистрироваться!</a><br/></div> 
            <input type="submit" name="submit" value="Войти"/><br/>

            </form>
        </div>
    </body>
</html>
  • 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-23T22:30:39+00:00Added an answer on May 23, 2026 at 10:30 pm

    You have a <br /> tag after the #center div. That is what is pushing it down. You also have some padding around the input tag; both of those issues are what is causing that space.

    Your code:

     <div class="center"><input type="text" name="password"/></div><br/>
    

    Remove that <br />

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

Sidebar

Related Questions

Simply enough I can't get text to align to right in a <label> element.
I need to align two divs next to each other, so that each contains
This is my markup, I need to align gray label under the blue label
I need to know the index of clicked element. Can't figure out how to
This is a two part question - first I need to get every element
I need a css gunu out there to help me with this one. Right
I'd like to overlay a div (or any element that'll work) over a table
I need to have a single <li> element which has two buttons inside of
I've got a project where I need to top-right align a div so that
I need to center an element both vertically and horizontally and the element can't

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.