Retroceder   Foros del Web > Diseño de Sitios web > CSS

Respuesta
 
Herramientas Desplegado
Antiguo 24-ene-2007, 13:56   #1 (permalink)
MMCQ ha deshabilitado el karma
 
Fecha de Ingreso: marzo-2006
Mensajes: 369
Form

Alguien me podria ayudar hacer el css de este formulario . lo que quiero es que lo input este a la Derecha y el Texto a la Izquierda con estilo Bold. y que el espacio que tenga el texto sea de width:75px;

Cita:
<form id="form1" name="form1" method="post" action="" >

<p>Username: <input type="text" name="username"/></p>
<p>Password: <input type="password" name="password"/></p>
<p>Retype Password: <input type="password" name="password2/></p>
<p>Email: <input type="text" name="email"/></p>
<p>
Country:
<select name="pais">
<option>Select...</option>
<option>---</option>
</select>
</p>
City:
<select name="ciudad">
<option>Select...</option>
<option>---</option>
</select>
</p>
<p>Bith Year: <input type="text" name="bithday"/></p>
<p>Gender:
<input type="radio" name="genero" value="male" />Male
<input type="radio" name="genero" value="female" /> Female
</p>
<input type="submit" name="Submit" value="Enviar" />

</form>
MMCQ está desconectado   Responder Citando
Antiguo 24-ene-2007, 15:11   #2 (permalink)
alexblue no se puede cailificar en este momento
 
Avatar de alexblue
 
Fecha de Ingreso: enero-2006
Ubicación: Londres
Mensajes: 64
Re: Form

Hola MMCQ:

Te adjunto el código HTML y CSS para este formulario:

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" xml:lang="en" lang="en">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<link rel="stylesheet" href="styles.css" type="text/css" />
    <title>Título de tu página</title>
</head>

<body>

	<form id="form1" name="form1" method="post" action="" >

		<p>
			<label>Username:</label>
			<input type="text" name="username" />
		</p>
		<p>
			<label>Password:</label>
			<input type="password" name="password"/>
		</p>
		<p>
			<label>Retype Password:</label>
			<input type="password" name="password2" />
		</p>
		<p>
			<label>Email:</label>
			<input type="text" name="email" />
		</p>
		<p>
			<label>Country:</label>
			<select name="pais">
				<option>Select...</option>
				<option>---</option>
			</select>
		</p>
		<p>
			<label>City:</label>
			<select name="ciudad">
				<option>Select...</option>
				<option>---</option>
			</select>
		</p>
		<p>
			<label>Bith Year:</label>
			<input type="text" name="bithday"/></p>
		<p>
			<label>Gender:
			<input type="radio" name="genero" value="male" />Male
			<input type="radio" name="genero" value="female" /> Female
		</p>
			<input type="submit" name="Submit" value="Enviar" />
	</form>
</body>
</html>
Código:
label {
	float:left;
	font-weight:bold;
	width:75px;
}

p {
	clear:both;
}
Espero que te sea de ayuda.

Suerte!
__________________
Alex
alexamine.co.uk
Mi profile en Linked In
alexblue está desconectado   Responder Citando
Respuesta
No hay votos aún.


Herramientas
Desplegado

Normas de Publicación
No puedes crear nuevos temas
No puedes responder temas
No puedes subir archivos adjuntos
No puedes editar tus mensajes

BB code is Activado
Caritas están Activado
[IMG] está Activado
Código HTML está Desactivado


La Zona horaria es GMT -6. Ahora son las 19:18.


Message Board Statistics

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93