Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
Bootstrap Form Control Sizing Example
Keywords : form, bootstrap, inputs, bootstrap form inputs, bootstrap input controls, bootstrap form input examples, bootstrap form controls, bootstrap form control sizing, bootstrap input controls size example
Example
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Form Control Sizing Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> <style> .bcontent { margin-top: 10px; } </style> </head> <body> <div class="container-fluid bcontent"> <h2>Bootstrap Form Control Sizing</h2> <hr /> <form> <div class="form-group row"> <label for="email" class="col-sm-2 col-form-label col-form-label-lg">Name</label> <div class="col-sm-10"> <input type="text" class="form-control form-control-lg" id="name" placeholder="Large"> </div> </div> <div class="form-group row"> <label for="password" class="col-sm-2 col-form-label">Location</label> <div class="col-sm-10"> <input type="text" class="form-control" id="location" placeholder="Default"> </div> </div> <div class="form-group row"> <label for="password" class="col-sm-2 col-form-label col-form-label-sm">Education</label> <div class="col-sm-10"> <input type="text" class="form-control form-control-sm" id="Text1" placeholder="Small"> </div> </div> </form> </div> </body> </html>
Click Here to See Result
Result
Previous
Next