How do you make a full width button in Bootstrap 5?
<div class="d-grid gap-2">
<button class="btn btn-primary" type="button">Full width with d-grid</button>
</div>
<button class="btn btn-secondary w-100 mt-2" type="button">Full width with w-100</button>
Live preview
See Buttons.
Learn more about the similar topics:
| Tutorials |
|---|
| Bootstrap Buttons |
| Bootstrap Alerts |
| Bootstrap Badges |
| Bootstrap Cards |
| Bootstrap List Group |
| Bootstrap Progress Bars and Spinners |
| Bootstrap Icons |