Bonsoir,
J'ai un petit bug avec mon formulaire, tout d'abord voici le code :
Et son CSS associé (ultra-résumé) :
Et voici le résultat :
http://img705.imageshack.us/img705/5909/screenj.jpg
Donc les inputs devrait être alignés aux labels donc je comprends pas vraiment..
Merci
Modifié par Mathelec (21 Dec 2011 - 12:52)
      
      
    J'ai un petit bug avec mon formulaire, tout d'abord voici le code :
		<div id="compte">
			<form method="post" action="#" id="form">
				<div id="login">
					<p><label for="form_user">Nom d'utilisateur : </label><input type="text" name="username" id="form_user" /></p>
					<p><label for="form_pass">Mot de passe : </label><input type="password" name="password" id="form_pass" /></p>
				</div>
				<p><button type="submit" id="submit">Connexion</button></p>
				<div class="clear"></div>
				<div id="login_link">
					<a href="#">Inscription</a> - <a href="#">Mot de passe oublié</a>
				</div>
			</form>
		</div>
Et son CSS associé (ultra-résumé) :
* { margin: 0; padding: 0; border: none; outline: none; }
.clear { clear: both; width: 100%; height: 0; line-height: 0; }
#form #login
{
	color: #b3aa9f;
	float: left;
}
#form #login p label
{
	width: 100px;
	padding-right: 1%;
	float: left;
}
#form #login p input
{
	width: 100px;
	margin-left: 1%;
	border: #27211e 1px solid;
	background-color: #aba297;
	float: right;
}
#form p #submit
{
	background: url(submit.png) no-repeat;
	color: #aba297;
	font-weight: bold;
	width: 86px;
	height: 38px;
	float: right;
}
#form #login_link
{
	font-size: 10px;
	font-weight: bold;		
	color: #aba297;
	text-align: center;
}
Et voici le résultat :
http://img705.imageshack.us/img705/5909/screenj.jpg
Donc les inputs devrait être alignés aux labels donc je comprends pas vraiment..
Merci
Modifié par Mathelec (21 Dec 2011 - 12:52)