content logo

Bootstrap Buttons:

Dual Selection Button with Bootstrap

The idea behind using a dual selection button is that you have two different select boxes – or two different choices – besides one another. You can assign different actions to each side and have the users choose. This is a really interesting concept and saves some amount of space. You can have two split decisions and have each user click on the button they fit the most. There are many ways you can take advantage of this features. Just open your mind to the endless possibilities and let your creativity take the wheel. You will come up with new and innovative ideas to implement this special type of button in your website. Due to the concept being quite intriguing, there is a high chance that users would want to click on these buttons.

Following is the code for a Bootstrap beautiful button with a special and unique options. It features a double button that can be used in many different places in your website. You could have this Bootstrap dual button as the answer to the ayes / no question. The buttons are separated via the word β€œor” in the middle. Clicking each of these blue buttons will change the colour to white. This Bootstrap yes/no button can be such an interesting addition to any website wishing to take advantage of this concept.

#

Bootstrap Beautiful Button

#

Blue Button

#

Bootstrap Dual Button

#

Bootstrap Yes/No Button

<!-- This script got from frontendfreecode.com -->
<div class="container-fluid main">
  <div class="text-center main-text">
    <h3>Lorem ipsum dolor sit amet, consectetur adipisicing elit</h3>
    <div class="c2a-btn footer-c2a-btn">
      <div class="btn-group btn-group-lg" role="group" aria-label="Call to action">
        <a type="button" class="btn btn-default btn-lg" href="#">Click Me</a>
        <span class="btn-circle btn-or">or</span>
        <a type="button" class="btn btn-default btn-lg" href="#">Click Me</a>
      </div>
    </div>
  </div>
</div><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
body,
html {
  height: 100%;
}
.main {
  width: 100%;
  height: 100%;
  position: relative;
  color: #111e6c;
  /* Try using a background image
  background: url('images/frontPageBackground.jpg');*/
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: all 1s ease;
  padding-top: 70px;
}
.main:before {
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  /*background: #111e6c;*/
  opacity: 0.2;
  filter: alpha(opacity=90);
}
.main-text {
  top: 20%;
  left: auto;
  right: auto;
  position: relative;
  color: #111e6c;
}
.btn-circle,
#to-top {
  border-radius: 50%;
  background: #111e6c;
  padding: 6px;
  font-size: 14px;
  /* border-radius: 50%; */
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  color: #fff;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
}
.c2a-btn {
  margin: 48px auto 0;
  margin: 4.8rem auto 0;
}
.btn-default {
  color: #fff;
  background-color: #111e6c;
  border-color: #111e6c;
  transition: all 1s ease;
}
.btn-group-lg > .btn,
.btn-lg {
  padding: 18px 28px;
  font-size: 18px;
  line-height: 1.3333333;
  border-radius: 50px;
}
.btn-group .btn-or {
  top: 50%;
  left: 50%;
  position: absolute;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 99;
  box-shadow: 0;
  border: 2px solid #fff;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
body,
html {
  height: 100%;
}
.main {
  width: 100%;
  height: 100%;
  position: relative;
  color: #111e6c;
  /* Try using a background image
  background: url('images/frontPageBackground.jpg');*/
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: all 1s ease;
  padding-top: 70px;
}
.main:before {
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  /*background: #111e6c;*/
  opacity: 0.2;
  filter: alpha(opacity=90);
}
.main-text {
  top: 20%;
  left: auto;
  right: auto;
  position: relative;
  color: #111e6c;
}
.btn-circle,
#to-top {
  border-radius: 50%;
  background: #111e6c;
  padding: 6px;
  font-size: 14px;
  /* border-radius: 50%; */
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  color: #fff;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
}
.c2a-btn {
  margin: 48px auto 0;
  margin: 4.8rem auto 0;
}
.btn-default {
  color: #fff;
  background-color: #111e6c;
  border-color: #111e6c;
  transition: all 1s ease;
}
.btn-group-lg > .btn,
.btn-lg {
  padding: 18px 28px;
  font-size: 18px;
  line-height: 1.3333333;
  border-radius: 50px;
}
.btn-group .btn-or {
  top: 50%;
  left: 50%;
  position: absolute;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 99;
  box-shadow: 0;
  border: 2px solid #fff;
}
</style>

</head>
<body>
<div class="container-fluid main">
  <div class="text-center main-text">
    <h3>Lorem ipsum dolor sit amet, consectetur adipisicing elit</h3>
    <div class="c2a-btn footer-c2a-btn">
      <div class="btn-group btn-group-lg" role="group" aria-label="Call to action">
        <a type="button" class="btn btn-default btn-lg" href="#">Click Me</a>
        <span class="btn-circle btn-or">or</span>
        <a type="button" class="btn btn-default btn-lg" href="#">Click Me</a>
      </div>
    </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