Jump to content

Centralizar submit no form

Carlos Rocha

Recommended Posts

Carlos Rocha

Tenho a print abaixo:


Estou tentando dar um margin: 0 auto no `botão submit` dentro do `form` mas nada que eu faça centraliza esse botão. Mas não posso fazer text-align: center senão vai centralizar todos os elementos do form.

Eis o form

    <div class="administrador">
      <h1 class="titulos">Cadastro de Administrador</h1>
      <form class="administradorCadastra">
          <label class="labelPequeno">Tipo</label><select id="tipo" name="tipo" required  class="typeTextMedio">
            <option value="">Escolha o tipo</option>
            <option value="s">Super Administrador </option>
            <option value="c">Comum Administrador </option>
          </select><br /> <br />
          <label class="labelPequeno">Nome</label><input type="text" class="typeTextMedio" maxlength="200" id="nome" name="nome" required /> <br /> <br />
          <label class="labelPequeno">Login</label><input type="text" class="typeTextMedio" maxlength="<?php echo $constantes->getLenLogin(); ?>" id="login" name="login" required /> <br /> <br />
          <label class="labelPequeno">Senha</label><input type="password" class="typeTextMedio" maxlength="<?php echo $constantes->getLenSenha(); ?>" id="senha" name="senha" required /> <br /> <br />
          <img class="spinner" src="../_img/_bannerImgs/spinner.gif" />          
          <input type="submit" class="btnAcesso" value="Cadastrar Administrador" /><br /> <br />
          <label class="resposta"></label>

O que fazer?

Edited by carcleo
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.