Create a button group
Description: Make one group of three outline buttons (Left, Middle, Right), and a vertical group of two buttons.
Hint:
- Use
btn-groupandbtn-group-vertical.
Solution
<div class="btn-group mb-3" role="group" aria-label="Alignment">
<button type="button" class="btn btn-outline-primary">Left</button>
<button type="button" class="btn btn-outline-primary">Middle</button>
<button type="button" class="btn btn-outline-primary">Right</button>
</div>
<br>
<div class="btn-group-vertical" role="group" aria-label="Vertical group">
<button type="button" class="btn btn-secondary">Top</button>
<button type="button" class="btn btn-secondary">Bottom</button>
</div>
Live preview
How it works
btn-groupjoins the buttons and removes the space and the inner radius.
Read Buttons.
Learn more about the similar topics:
| Tutorials |
|---|
| No Content Found. |
| Exercises & Assignments |
|---|
| No Content Found. |
| Interview Questions & Answers |
|---|
| No Content Found. |