The following code creates a button group as shown below
<html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>Vertical Button Group</h2> <div class="btn-group"> <button type="button" class="btn btn-primary">ButtonGroup1</button> <button type="button" class="btn btn-primary">ButtonGroup2</button> <button type="button" class="btn btn-primary">ButtonGroup3</button> <button type="button" class="btn btn-primary">ButtonGroup4</button> </div> </div> </body> </html>
No comments:
Post a Comment