Bootstrap class input-group-sm

To make small input group, use the input-group-sm.

You can try to run the following code to implement the input-group-sm class in Bootstrap −


Live Demo

<!DOCTYPE html>
      <title>Bootstrap Example</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
      <div style = "padding: 100px 100px 10px; background: blue;">
         <form class = "bs-example bs-example-form" role = "form">
            <div class = "input-group input-group-sm">
               <span class = "input-group-addon">$</span>
               <input type = "text" class = "form-control">