Bootstrap Tutorial - Mark span as input-group-addon








The following code shows how to mark span as input-group-addon.

Example

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css">
<style type='text/css'>
.input-group-addon {<!--   w ww.ja v  a 2  s.com-->
  min-width: 300px;
  text-align: left;
}
</style>
</head>
<body>
  <div class="input-group">
    <span class="input-group-addon">and yet another length</span> 
    <input type="text" class="form-control" id="current_pwd" name="current_pwd"/>
  </div>
  <div class="input-group margin_top_10">
    <span class="input-group-addon ">another length</span> 
    <input type="text" class="form-control" id="new_pwd" name="new_pwd"/>
  </div>
  <div class="input-group margin_top_10">
    <span class="input-group-addon">length_1</span> 
    <input type="text" class="form-control" id="confirm_pwd" name="confirm_pwd"/>
  </div>
</body>
</html>

Click to view the demo