Screenshot of formbootstrap vermasselt Formular
Ich habe Probleme mit Bootstrap. Ich habe ein Formular mit drei Textfeldern. Das oberste Textfeld, die E-Mail, ist nicht mit den übrigen Textfeldern ausgerichtet. Ich habe die HTML enthalten:
<form role="form" action="register.php" method="POST" form-horizontal novalidate>
<form class="form-horizontal" role="form">
<div class="form-group">
<label class="control-label col-sm-4" for="email"></label>
<div class="col-sm-10">
<input type="email" class="form-control" id="email" placeholder="Enter Email">
</div>
</form>
</div>
<form class="form-horizontal" role="form">
<div class="form-group">
<span></span>
<div class="col-sm-10">
<input type="text" class="form-control" id="username" placeholder="Enter username">
</div>
</div>
</form>
<form class="form-horizontal" role="form">
<div class="form-group">
<label class="control-label col-sm-4" for="username"></label>
<div class="col-sm-10">
<input type="password" class="form-control" id="password" placeholder="Enter password ">
</div>
</div>
</form>
<div class="form-group">
<div class="col-sm-offset-0 col-sm-10">
<button type="submit" class="btn btn-primary" name="submit">Register</button>
</div>
</div>
</form>
Ich verstehe nicht, was ich falsch mache. Jede Hilfe wäre dankbar, danke.
danke es funktioniert, weißt du, wie ich etwas zwischen ihnen machen kann? wie unter jeder Form etwas Platz, um Fehler msg auszugeben? –
in Bootstrap-Stil für .form-Gruppe {margin-bottom: 15px;} ist es nicht erwähnen, oder Sie können hinzufügen –