Ver Mensaje Individual
  #6 (permalink)  
Antiguo 17/03/2008, 06:22
Eourus
 
Fecha de Ingreso: octubre-2006
Ubicación: Murcia - España
Mensajes: 336
Antigüedad: 17 años, 6 meses
Puntos: 6
Re: Formulario de tablas a css (ayuda)

A ver, te copio y pego:

Código HTML:
<!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=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>

<style type="text/css">

	#formulario { font:11px arial; width:460px;}
	#formulario form { margin:0px; padding:0px; }
	#formulario fieldset { border:1px solid #ccc; }
	#formulario legend { font-weight:bold; color:#666; }
	#formulario label { font-weight:bold; display:block; width:100px; float:left; }
	#formulario input, select, textarea { font:11px arial; background-color:#ddd; border:1px solid #666; }
	#formulario input:focus, select:focus, textarea:focus { background:#FFFFB9}
	#formulario br { display:block; margin-bottom:10px; clear:both; }

</style>

<body>

<div id="formulario">
	<form action="#" method="post" name="registro">
	
		<fieldset>
		<legend>Datos Personales</legend>
	
			<label for="formnombre">Nombre:</label>
			<input type="text" name="nombre" id="formnombre" size="40" />
			<br />
			
			<label for="formapellidos">Apellidos:</label>
			<input type="text" name="apellidos" id="formapellidos" size="40" />
			<br />
		
		</fieldset>
		
		<br />
		
		<fieldset>
		<legend>Otros Datos:</legend>
		
			<label for="formusu">Usuario:</label>
			<input type="text" name="usuario" id="formusu" size="40" maxlength="20" />
			<br />
			
			<label>Password:</label>
			<input type="password" name="password" id="formpass" size="40" maxlength="20" />
			<br />
			
			<br />
			
			<input type="submit" name="registrarse" value="registrarse" />			
		
		</fieldset>
	
	</form>
</div>

</body>
</html>