1
I have the print below:
I’m trying to give a margin: 0 auto
in the botão submit
within the form
but nothing I do centralization that button. But I can’t do text-align: center
otherwise it will center all the elements of the form.
Here is the **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>
</form>
</div>
What to do?
Yeah, it kind of worked. But I can think of a question here: If only block elements receive dimensions, why even without display: block it is receiving dimensions? And in the inspector, the browser listed it as inline-block. In this case, it would not be the case, that if it receives dimensions also it should not receive the border: the self?
– Carlos Rocha
You can help me with this one more time: https://answall.com/questions/301056/encurtar-camio-com-jquery please?
– Carlos Rocha
@Carlosrock the difference from inline to inline-block is that inline-block can have width and height etc, but at the same time it continues in the "Line" text flow with the other inline and inline-block elements. It doesn’t break the line like a div, a P or an H1 for example understands. I’ll see if I can help you with the other question you linked
– hugocsl
The inline one I understand now. Thank you! I never forget again.
– Carlos Rocha