Answer: 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>
<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>
</div>
</div>
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