how create this login form on bootstrap 3.0
http://joxi.ru/zcBBUtg5CbB8ELTo5CA
My code:
<form role="form" class="form-inline">
<input type="email" class="form-control input-sm" placeholder="Адрес электронной почты">
<div class="form-group">
<input type="password" class="form-control input-sm" placeholder="Пароль">
<button class="btn btn-primary btn-sm">Войти</button>
</div>
</form>
http://jsfiddle.net/mborodov/Ls684/
But, i need padding between inputs and inline password input and submit button.
Try with this jsFiddle : http://jsfiddle.net/Ls684/2/
<form role="form" class="padding-15 black round-5 form-inline">
<input type="email" class="form-control input-sm" placeholder="Адрес электронной почты">
<div class="form-group">
<input type="password" class="form-control input-sm" placeholder="Пароль">
<button class="btn btn-primary btn-sm">Войти</button>
</div>
</form>
CSS
@import url('//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css');
.form-control[type="email"]{
width : 100%;
margin-bottom: 10px;
}
.form-control[type="password"]{
width : 60%;
float : left;
}
button{
width : 30%;
float : left;
margin-left: 10%;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With