How do we create large button groups in bootstrap ?

 Posted by Vivek.Ramapuram on 5/19/2015 | Category: Bootstrap Interview questions | Views: 2325 | Points: 40

There are different sizes of btn-group classes. They are btn-group-lg (forlarge button group), btn-group-sm (for small button group) and btn-group-xs (for extra small buttons).
Here, we will create on for large button group.
Example :

<div class="btn-group btn-group-lg">
<button type="button" class="btn btn-primary">Home</button>
<button type="button" class="btn btn-primary">Settings</button>
<button type="button" class="btn btn-info">Contact us</button>
<button type="button" class="btn btn-danger">Testimonials</button>

In the same way we can create small button and extra small button groups by changing "btn-group btn-group-(lg)/(sm)/(xs)"

Asked In: While Learning | Alert Moderator 

Comments or Responses

Login to post response