Bootstrap block level help text

BootstrapWeb DevelopmentCSS Framework

Bootstrap form controls can have a block level help text that flows with the inputs. To add a full width block of content, use the .help-block after the <input>.

The following example demonstrates this

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <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>
   </head>
   <body>
      <form role = "form">
         <span>Example of Help Text</span>
         <input class = "form-control" type = "text" placeholder = "">
         <span class = "help-block">
            A longer block of help text that breaks onto a new line and may extend beyond one line.
         </span>
      </form>
   </body>
</html>
raja
Published on 19-Jun-2018 10:30:27
Advertisements