content logo

Bootstrap Buttons:

Bootstrap Check Button

When there is a list of two or more options available for the user to choose from, we use a check button. these buttons are usable for when the options are mutually exclusive and the user has to select only one of the available options. In simpler words, if you click a button which is not currently selected, then the currently selected button will be deselected and instead whatever button you just pressed will be selected. These buttons must have proper visual representations. For instance, they must include a small tick box to indicate which button is selected. Also, check buttons are usually vertical but they can be used horizontally as well. In case you have to use them in such arrangement, then make sure you put enough space between each button.

The following code features Bootstrap gradient buttons. These are check button, meaning they allow the users to select them one at a time. They offer really nice design and a great Bootstrap grey button. you can have this grey gradient button anywhere in your website. This gradient button can be used differently and the usage is in your hands. Use your creativity and find the best place to add this nice little feature. If you do it right, it could help you immensely in getting a higher daily traffic and a better revenue.

#

Bootstrap Gray Button

#

Gradient Button

#

Gray Gradient Button

#

Bootstrap Gradient Button

<!-- This script got from frontendfreecode.com -->
<div class="container">
    <div class="row">
        <div class="btn-group" data-toggle="buttons">
            <label class="btn btn-primary active">
                <input type="radio" name="options" id="option1" autocomplete="off" checked>
                <i class="fa fa-check-circle" aria-hidden="true"></i>
                # of Fires
            </label>
            <label class="btn btn-primary">
                <input type="radio" name="options" id="option3" autocomplete="off">
                <i class="fa fa-check-circle" aria-hidden="true"></i>
                Total Acres
            </label>
        </div>
    </div>
</div><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
body {
  padding-top: 50px;
}
.row {
  align-items: center;
  justify-content: center;
}
.btn {
  cursor: pointer;
}
.btn-primary:not(.active) > .fa-check-circle {
  display: none;
}
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css'>
<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/js/bootstrap.min.js'></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css'>
<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/js/bootstrap.min.js'></script>
<style>
body {
  padding-top: 50px;
}
.row {
  align-items: center;
  justify-content: center;
}
.btn {
  cursor: pointer;
}
.btn-primary:not(.active) > .fa-check-circle {
  display: none;
}
</style>

</head>
<body>
<div class="container">
    <div class="row">
        <div class="btn-group" data-toggle="buttons">
            <label class="btn btn-primary active">
                <input type="radio" name="options" id="option1" autocomplete="off" checked>
                <i class="fa fa-check-circle" aria-hidden="true"></i>
                # of Fires
            </label>
            <label class="btn btn-primary">
                <input type="radio" name="options" id="option3" autocomplete="off">
                <i class="fa fa-check-circle" aria-hidden="true"></i>
                Total Acres
            </label>
        </div>
    </div>
</div><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>

</body>
</html>
Preview