Jump to content
Fórum Script Brasil
  • 0

Dúvida com FORM


maicorec
 Share

Question

bom pessoal estou usando o seguinte codigo

<form id="Process" method="post" target="blank" action="pagina.php">

<label>Teste:

<input name="txtuserlvl" type="text" id="txtuserlvl" />

</label>

<br />

<label>

<input name="Submit" type="submit" id="Submit" value="Calculate" />

</label>

</form>

e está funcionando bem, só que quero ajustar a tela q ele abre, quero centralizar ela e deixar ela 200x150, se alguém puder ajudar! vlww :)

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

não entendi muito bem

quando clicar no calcular vai abrir outra pagina e tu queres que ela esteja centralizada com essas dimensões?

para centralizar faça isso

CSS

.centralizado{
            border:1px #000000 solid;
            position:absolute;
            width:200px;
            height:150px;
            top:50%;
            left:50%;
            margin-top:-75px; /* metade da altura negativa */
            margin-left:-100px; /* metade da largura negativa */
        }
HTML
<div class="centralizado">
    <form id="Process" method="post" target="blank" action="pagina.php">
        <label>Teste:
        <input name="txtuserlvl" type="text" id="txtuserlvl" />
        </label>
        <br />
        <label>
        <input name="Submit" type="submit" id="Submit" value="Calculate" />
        </label>
    </form>
</div>

Edited by Nosreve
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Forum Statistics

    • Total Topics
      150.9k
    • Total Posts
      648.8k
×
×
  • Create New...