"Responsive Flat Inputs"
Bootstrap 3.3.0 Snippet by xpcassio

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="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.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">
<div class="row">
<div class="col-xs-12">
<p># Avoid using <span class="text-danger">select</span> elements here as they cannot be fully styled in WebKit browsers.</p>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<h2>Basic example</h2>
<form role="form">
<div class="form-group">
<label for="exampleInput">Input text</label>
<input type="text" class="form-control" id="exampleInput">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Textarea</label>
<textarea class="form-control" rows="3"></textarea>
</div>
<div class="form-group">
<label for="exampleInputEmail1">Select</label>
<select class="form-control">
<option>1</option>
<option>2</option>
</select>
</div>
</form>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<h2>Height sizing</h2>
<form role="form">
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
.form-control {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
.input-sm {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
.form-group-sm .form-control {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
.input-lg {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
.form-group-lg .form-control {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
.input-group-lg > .form-control,
.input-group-lg > .input-group-addon,
.input-group-lg > .input-group-btn > .btn {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: