Mark span as input-group-addon

Description

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 {<!--from   w  w  w  . java 2 s . c o m-->
  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





















Home »
  Bootstrap »
    Example »




Accordion
Alert
Auto Complete
Badge
Breadcrum
Button
Carousel
Collapse
Dialog
Dropdown
Form
Icon
Jumbotron
Label
Layout
List
List Group
Media
Navigation Bar
Pager
Page Header
Panel
Paragraph
Pills
Popover
ProgressBar
ScrollSpy
Switch
Tab
Table
Thumnail
Tooltip
Tree
Well