Height Sizing of Form Groups - HTML CSS Bootstrap

HTML CSS examples for Bootstrap:Form Control

Description

Height Sizing of Form Groups

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
 <head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Height Sizing of Bootstrap 3 Form Groups</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
 </head><!--  www .ja va  2 s. c o  m-->
 <body>
  <div>
   <form class="form-horizontal">
    <div class="form-group form-group-lg">
     <label class="col-sm-3 control-label" for="inputLarge">Large label</label>
     <div class="col-sm-9">
      <input type="text" class="form-control" id="inputLarge" placeholder="Large input">
     </div>
    </div>
    <div class="form-group">
     <label class="col-sm-3 control-label" for="inputDefault">Default label</label>
     <div class="col-sm-9">
      <input type="text" class="form-control" id="inputDefault" placeholder="Default input">
     </div>
    </div>
    <div class="form-group form-group-sm">
     <label class="col-sm-3 control-label" for="inputSmall">Small label</label>
     <div class="col-sm-9">
      <input type="text" class="form-control" id="inputSmall" placeholder="Small input">
     </div>
    </div>
   </form>
  </div>
 </body>
</html>

Related Tutorials