comment mettre un width pour qu'il soit pris di
Voici mon problème.
Je suis en train de monter un formulaire.
Le problème est le suivant:
J'ai deux champs mais je veux que les deux texte box soient un sous l'autre mais le paramètre que je passe (width n'est pas considéré)
Y a t'il quelqu'un qui a un idée
Code:
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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strick//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Strick.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style text/css>
body {
background: #fff;
color: #333;
margin: 0;
padding: 0;
font:0.8em Verdana, Arial, Helvetica, sans-serif;
}
.container {
float: left;
display: block;
}
.container h1{
font-size:115%;
margin:0 0 15px 0;
}
.container label
{
width:145px;
}
.container p {
margin:0;
padding:5 px 0 0 0;
}
.container input.txt {
border:1px solid #A5ACB2;
width:155px;
}
</style>
</head>
<body>
<form action="" method="post">
<div class="container">
<h1>3618 - For Sale GE Advantage 2 OB / GYN Ultrasound</h1>
<p>
<label for ="Title">Ceci est le champ Titre 1</label>
<input name="Title" id="Title" type="text" class="txt"/>
<img src="file:///C|/Documents%20and%20Settings/elaflamm/Desktop/img-pers/note-icon.gif" alt="" width="8" height="9" />
<label for ="gmt" >at</label>
<select name="select" id="gmt"><option>08:00 AM</option></select>
<label>GMT</label>
</p>
<p>
<label for ="lastname">Titre 2</label>
<input name="lastname" id="lastname" type="text" class="txt" />
</p>
</div>
</form>
</body>
</html> |