0
Good, I am developing a webpage with a form. How can I align the text boxes to fill? I tried to put everything inside a div with the container class, I tried to set the size to approximate sizes, but there’s always a millimeter difference, and I tried to do it inside a table, but it’s small spacing. So far the code is like this:
<div style="margin-top: 30px;" class="container">
<form method="POST" action="<?php echo $_SERVER["PHP_SELF"]; ?>">
<h3>Dados Funcionario nº<?php echo $registo["IDFuncionario"]; ?></h3><br>
<p>Nome <input type="text" name="Nome" size="50" value="<?php echo $registo["Nome"]; ?>"></p>
<p>Username<input type="text" name="username" size="47" value="<?php echo $registo["username"]; ?>"></p>
<p>Password<input type="text" name="password" size="47" value="<?php echo $registo["password"]; ?>"></p>
<p>Morada<input type="text" name="morada" size="49" value="<?php echo $registo["morada"]; ?>"></p>
<p>Contacto <input type="text" name="contacto" size="47" maxlength="9" value="<?php echo $registo["contacto"]; ?>"></p><br>
<p><input type="submit" value="Alterar" name="alterar"><input type="reset" value="Repor" name="B2"></p>
</form>
</div>
Welcome to Stackoverflow in English. To help you better and faster, include the code you have so far.
– Rafael Almeida
Welcome. Use relevant tags to doubt and not to your project all friend.
– Guilherme Nascimento
I edited why you should not use snippet to demonstrate PHP code. Use snippet to play "problems" with CSS, html, js and only.
– Guilherme Nascimento