"awesome bootstrap forms"
Bootstrap 3.0.0 Snippet by aman640

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
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container-fluid">
<div class="container">
<div class="formBox">
<form>
<div class="row">
<div class="col-sm-12">
<h1>Contact form</h1>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="inputBox ">
<div class="inputText">First Name</div>
<input type="text" name="" class="input">
</div>
</div>
<div class="col-sm-6">
<div class="inputBox">
<div class="inputText">Last Name</div>
<input type="text" name="" class="input">
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="inputBox">
<div class="inputText">Email</div>
<input type="text" name="" class="input">
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
body{
margin: 0;
padding: 0;
font-family: sans-serif;
}
.formBox{
margin-top: 90px;
padding: 50px;
}
.formBox h1{
margin: 0;
padding: 0;
text-align: center;
margin-bottom: 50px;
text-transform: uppercase;
font-size: 48px;
}
.inputBox{
position: relative;
box-sizing: border-box;
margin-bottom: 50px;
}
.inputBox .inputText{
position: absolute;
font-size: 24px;
line-height: 50px;
transition: .5s;
opacity: .5;
}
.inputBox .input{
position: relative;
width: 100%;
height: 50px;
background: transparent;
border: none;
outline: none;
font-size: 24px;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
<script src="https://code.jquery.com/jquery-3.2.1.js"></script>
<script type="text/javascript">
$(".input").focus(function() {
$(this).parent().addClass("focus");
})
</script>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: