Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/07/2012, 02:19
Avatar de Highway
Highway
 
Fecha de Ingreso: abril-2010
Mensajes: 3
Antigüedad: 14 años
Puntos: 0
Posición de un formulario dentro de la página

Saludos

Soy nuevo en esto, por fin he aprendido a hacer un formulario y guardar los datos en un .txt. Ahora me gustaría cambiarlo de posición en la página y que no aparezca siempre en la esquina superior izquierda. He probado esto:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Formulario</title>
<style type="text/css">
</style>
</head>
<body background="fondo.png">


<body>
<div id="contenedor">
#contenedor {
width: 300px;
height: 250px;
margin: auto;
</div>



<div id="contenedor">

<FORM method="post" name="formulario" action="pagina.php">
Nombre:<input type="text" name="nombre" id="nombre"><br />
Apellido: <input type="text" name="Apellido" id="apellido"><br />

</div>
</body>
</body>

<input type="submit" value="Enviar">
<input type="reset">



Os agradecería mucho que le echaseis un vistazo. Muchas gracias