Button Group


Group a series of buttons together on a single line with the button group.

Button Group Classes
  • btn-group
  • btn-group-vertical
  • btn-group-justified


Source Code

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Tutor Joes</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
    <!--<link rel="stylesheet" href="css/bootstrap.min.css">-->
    <style>
        hr {
            margin-top: 15px;
            margin-bottom: 15px;
            display: block;
        }
    </style>
</head>
<body>
    <div class="container">
        <h3>Bootstrap Button Group</h3>
        <div class="row">
            <div class="col-md-6">
                <div class="btn-group">
                    <button type="button" class="btn btn-primary">Home</button>
                    <button type="button" class="btn btn-info">Contact</button>
                    <button type="button" class="btn btn-danger">Product</button>
                    <button type="button" class="btn btn-success">Download</button>
                </div>
                <hr>
                <div class="btn-group btn-group-lg">
                    <button type="button" class="btn btn-primary">Home</button>
                    <button type="button" class="btn btn-info">Contact</button>
                    <button type="button" class="btn btn-danger">Product</button>
                    <button type="button" class="btn btn-success">Download</button>
                </div>
                <hr>
                <div class="btn-group btn-group-sm">
                    <button type="button" class="btn btn-primary">Home</button>
                    <button type="button" class="btn btn-info">Contact</button>
                    <button type="button" class="btn btn-danger">Product</button>
                    <button type="button" class="btn btn-success">Download</button>
                </div>
                <hr>
                <div class="btn-group btn-group-xs">
                    <button type="button" class="btn btn-primary">Home</button>
                    <button type="button" class="btn btn-info">Contact</button>
                    <button type="button" class="btn btn-danger">Product</button>
                    <button type="button" class="btn btn-success">Download</button>
                </div>
                <hr>
                <div class="btn-group-vertical">
                    <button type="button" class="btn btn-danger">Home</button>
                    <button type="button" class="btn btn-danger">Contact</button>
                    <button type="button" class="btn btn-danger">Product</button>
                    <button type="button" class="btn btn-danger">Download</button>
                </div>
                <hr>
                <div class="btn-group">
                    <a href="#" class="btn btn-primary">Home</a>
                    <a href="#" class="btn btn-primary">Contact</a>
                    <a href="#" class="btn btn-primary">Product</a>
                    <a href="#" class="btn btn-primary">Download</a>
                </div>
                <hr>
                <div class="btn-group btn-group-justified">
                    <a href="#" class="btn btn-primary">Home</a>
                    <a href="#" class="btn btn-primary">Contact</a>
                    <a href="#" class="btn btn-primary">Product</a>
                    <a href="#" class="btn btn-primary">Download</a>
                </div>
                <hr>
                <div class="btn-group btn-group-justified">
                    <div class="btn-group">
                        <button type="button" class="btn btn-danger">Home</button>
                    </div>
                    <div class="btn-group">
                        <button type="button" class="btn btn-danger">Contact</button>
                    </div>
                    <div class="btn-group">
                        <button type="button" class="btn btn-danger">Product</button>
                    </div>
                    <div class="btn-group">
                        <button type="button" class="btn btn-danger">Download</button>
                    </div>
                </div>
                <hr>

            </div>
        </div>
    </div>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
    <!--<script src="js/jquery.min.js"></script>-->
    <!--<script src="js/bootstrap.min.js"></script>-->
</body>
</html>
To download raw file Click Here