Create a login and password form in the upper-right corner of the screen

Asked

Viewed 6,629 times

2

I’d like to put a form login and password in the upper right corner of the screen with the option to register.

<input type="text" name="nome">
<input type="password" name="senha">
<input type="button" value="Entrar" />
  • You must already have some code, right?

  • Have you tried doing a div and positioning it on the right? Put more HTML so we know how your page is and give a better solution.

  • texto em negrito was the only thing I understood

  • try this site you will find the http://bootsnipp.com/tags/loginsolution

  • Create a div around these inputs and place float: right; in it using CSS. Remembering that your div has to be created at the top of your document.

1 answer

5

See if it helps.

#nav{height:77px; width:100%;background: #f1f1f1;padding:7px;}
    #sup_direito{float:right; width:auto; }
        #login, #senha, #cadastrar{float:left;}
<div id="nav">
  <div id="sup_direito">
    <div id="login"><input type="text" placeholder="login"></div>
    <div id="senha"><input type="password" placeholder="senha"></div>
    <div id="cadastrar"><a href="cadastrar.php">cadastrar</a></div>
  </div>
</div>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.